diff options
| author | Christian Marangi <ansuelsmth@gmail.com> | 2023-06-19 13:55:32 +0200 |
|---|---|---|
| committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-06-25 02:08:56 +0200 |
| commit | 38cc09165fd11caa9599d960280bd91dbaba7a62 (patch) | |
| tree | a21ee217392e3b97e1f18da4a20dee25948a3886 /.github/workflows/label-target.yml | |
| parent | acd9981b4ef750544202df9d9e2d0143a6dfd478 (diff) | |
| download | upstream-38cc09165fd11caa9599d960280bd91dbaba7a62.tar.gz upstream-38cc09165fd11caa9599d960280bd91dbaba7a62.tar.bz2 upstream-38cc09165fd11caa9599d960280bd91dbaba7a62.zip | |
CI: migrate each workflow to use reusable workflow from dedicated repo
Migrate each workflow to use reusable workflow from dedicated repo to
skip pushing CI related commits to openwrt and better track versioning
of CI workflow.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to '.github/workflows/label-target.yml')
| -rw-r--r-- | .github/workflows/label-target.yml | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/.github/workflows/label-target.yml b/.github/workflows/label-target.yml index 610aab026aa..989ee9fcb43 100644 --- a/.github/workflows/label-target.yml +++ b/.github/workflows/label-target.yml @@ -7,36 +7,10 @@ on: - labeled jobs: - set_target: - if: startsWith(github.event.label.name, 'ci:target:') - name: Set target - runs-on: ubuntu-latest - outputs: - target: ${{ steps.set_target.outputs.target }} - subtarget: ${{ steps.set_target.outputs.subtarget }} - - steps: - - name: Set target - id: set_target - env: - CI_EVENT_LABEL_NAME: ${{ github.event.label.name }} - run: | - echo "$CI_EVENT_LABEL_NAME" | sed -n 's/.*:\(.*\):\(.*\)$/target=\1/p' | tee --append $GITHUB_OUTPUT - echo "$CI_EVENT_LABEL_NAME" | sed -n 's/.*:\(.*\):\(.*\)$/subtarget=\2/p' | tee --append $GITHUB_OUTPUT - - build_target: - name: Build target - needs: set_target + build-target-label: + name: Build target from defined label permissions: contents: read packages: read actions: write - uses: ./.github/workflows/build.yml - with: - container_name: toolchain - target: ${{ needs.set_target.outputs.target }} - subtarget: ${{ needs.set_target.outputs.subtarget }} - build_full: true - build_all_kmods: true - build_all_boards: true - build_all_modules: true + uses: openwrt/actions-shared-workflows/.github/workflows/label-target.yml@main |
