2022-10-22 23:21:38 +08:00
|
|
|
name: update-prebuilts
|
|
|
|
|
|
|
|
on:
|
2022-10-22 23:26:32 +08:00
|
|
|
workflow_dispatch:
|
2022-10-22 23:21:38 +08:00
|
|
|
# Inputs the workflow accepts.
|
|
|
|
inputs:
|
2023-08-11 18:20:20 +08:00
|
|
|
build1k_rel_tag:
|
2022-10-22 23:21:38 +08:00
|
|
|
# actions run ID
|
2023-08-11 18:20:20 +08:00
|
|
|
description: 'Please input build1k release tag, such as v57'
|
2022-10-22 23:21:38 +08:00
|
|
|
# Default value if no value is explicitly provided
|
|
|
|
default: ''
|
|
|
|
# Input has to be provided for the workflow to run
|
|
|
|
required: true
|
2023-03-18 00:25:35 +08:00
|
|
|
force_update:
|
|
|
|
# actions run ID
|
|
|
|
description: 'Whether force update'
|
|
|
|
# Default value if no value is explicitly provided
|
|
|
|
default: 'false'
|
|
|
|
# Input has to be provided for the workflow to run
|
|
|
|
required: false
|
2022-10-22 23:21:38 +08:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
# 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
|
|
|
|
|
2023-08-11 21:45:43 +08:00
|
|
|
env:
|
|
|
|
FORCE_UPDATE: ${{ github.event.inputs.force_update }}
|
|
|
|
|
2022-10-22 23:21:38 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
|
|
|
|
- name: Update prebuilts
|
2023-08-11 21:45:43 +08:00
|
|
|
|
2022-10-22 23:21:38 +08:00
|
|
|
# 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
|
2023-08-11 18:20:20 +08:00
|
|
|
run: pwsh tools/ci/update-prebuilts.ps1 ${{ github.event.inputs.build1k_rel_tag }}
|
2022-10-22 23:21:38 +08:00
|
|
|
|
|
|
|
- name: Create pull request
|
2023-03-18 00:25:35 +08:00
|
|
|
if: ${{ env.AX_PREBUILTS_NO_UPDATE != 'true' }}
|
2022-10-22 23:21:38 +08:00
|
|
|
id: cpr
|
|
|
|
uses: peter-evans/create-pull-request@v4
|
|
|
|
with:
|
2022-10-23 12:38:54 +08:00
|
|
|
token: ${{ secrets.AX_BOT_TOKEN }}
|
|
|
|
push-to-fork: axmol-bot/axmol
|
2023-08-11 18:20:20 +08:00
|
|
|
commit-message: Update thirdparty prebuilts to ${{ github.event.inputs.build1k_rel_tag }}
|
2022-10-23 00:19:06 +08:00
|
|
|
committer: 'GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>'
|
2022-10-23 15:47:15 +08:00
|
|
|
author: 'axmol-bot <axmol-bot@users.noreply.github.com>'
|
2022-10-22 23:21:38 +08:00
|
|
|
signoff: false
|
2023-08-11 18:58:50 +08:00
|
|
|
branch: 1kdist_${{ github.event.inputs.build1k_rel_tag }}
|
2022-10-22 23:21:38 +08:00
|
|
|
delete-branch: true
|
2023-08-11 18:20:20 +08:00
|
|
|
title: 'Update thirdparty prebuilts to ${{ github.event.inputs.build1k_rel_tag }}'
|
2022-10-22 23:21:38 +08:00
|
|
|
body: |
|
2023-02-16 06:25:35 +08:00
|
|
|
RT
|
2022-10-22 23:21:38 +08:00
|
|
|
- Auto-generated by [create-pull-request][1]
|
|
|
|
|
|
|
|
[1]: https://github.com/peter-evans/create-pull-request
|
|
|
|
labels: |
|
|
|
|
thirdparty
|
|
|
|
automated pr
|
|
|
|
pinned
|
2022-10-23 12:38:54 +08:00
|
|
|
assignees: axmol-bot
|
2022-10-22 23:21:38 +08:00
|
|
|
reviewers: halx99
|
2023-08-11 21:45:43 +08:00
|
|
|
milestone: '1.1.x'
|
2022-10-22 23:21:38 +08:00
|
|
|
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 }}"
|