mirror of https://github.com/axmolengine/axmol.git
77 lines
2.5 KiB
YAML
77 lines
2.5 KiB
YAML
|
name: update-prebuilts
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- dev
|
||
|
|
||
|
paths:
|
||
|
- '.github/workflows/update-prebuilts.yml'
|
||
|
|
||
|
workflow_dispatch:
|
||
|
# Inputs the workflow accepts.
|
||
|
inputs:
|
||
|
buildware_rel_tag:
|
||
|
# actions run ID
|
||
|
description: 'Please input buildware release tag, such as v41'
|
||
|
# Default value if no value is explicitly provided
|
||
|
default: ''
|
||
|
# Input has to be provided for the workflow to run
|
||
|
required: true
|
||
|
jobs:
|
||
|
build:
|
||
|
if: ${{ !startsWith(github.event.commits[0].message, 'Merge pull request') }}
|
||
|
# The CMake configure and build commands are platform agnostic and should work equally
|
||
|
# well on Windows or Mac. You can convert this to a matrix build if you need
|
||
|
# cross-platform coverage.
|
||
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
env:
|
||
|
BUILDWARE_REL_TAG: ${{ github.event.inputs.buildware_rel_tag }}
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
with:
|
||
|
submodules: 'recursive'
|
||
|
|
||
|
- name: Update prebuilts
|
||
|
# Some projects don't allow in-source building, so create a separate build directory
|
||
|
# We'll use this as our working directory for all subsequent commands
|
||
|
run: tools/unix-ci/update-prebuilts.sh $BUILDWARE_REL_TAG
|
||
|
|
||
|
- name: Create pull request
|
||
|
id: cpr
|
||
|
uses: peter-evans/create-pull-request@v4
|
||
|
with:
|
||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||
|
commit-message: Update thirdparty prebuilts
|
||
|
committer: GitHub Actions<41898282+github-actions[bot]@users.noreply.github.com>
|
||
|
author: '41898282+github-actions[bot]@users.noreply.github.com'
|
||
|
signoff: false
|
||
|
branch: buildware_dist_${{ github.event.inputs.buildware_rel_tag }}
|
||
|
delete-branch: true
|
||
|
title: 'Update thirdparty prebuilts'
|
||
|
body: |
|
||
|
Update thirdparty prebuilts
|
||
|
- Auto-generated by [create-pull-request][1]
|
||
|
|
||
|
[1]: https://github.com/peter-evans/create-pull-request
|
||
|
labels: |
|
||
|
thirdparty
|
||
|
automated pr
|
||
|
pinned
|
||
|
assignees: halx99
|
||
|
reviewers: halx99
|
||
|
team-reviewers: |
|
||
|
owners
|
||
|
maintainers
|
||
|
milestone: '1.0'
|
||
|
draft: false
|
||
|
|
||
|
- name: Check outputs
|
||
|
if: ${{ steps.cpr.outputs.pull-request-number }}
|
||
|
run: |
|
||
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||
|
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|