Skip to content

Commit

Permalink
action: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
smallprogram committed Oct 25, 2024
1 parent d0e6990 commit 0d1af18
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/Build-OpenWrt_Multi-Platform(V4).yml
Original file line number Diff line number Diff line change
Expand Up @@ -771,14 +771,6 @@ jobs:
tag_name: ${{ needs.job_init.outputs.output_release_tag }}
body_path: release.txt

- name: Trigger build
if: steps.organize_tags.outputs.status == 'success'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.MY_SECRET_PAT }}
repository: smallprogram/MyAction
event-type: openwrt_compilation_completed

rerun-failed-jobs:
runs-on: ubuntu-24.04
needs: [job_init, job_source_init, job_generate_release_tag, job_build_toolchain, job_build, job_upload_release, job_organize_tags]
Expand All @@ -791,4 +783,17 @@ jobs:
run: |
echo "Retry failed jobs for the ${{ fromJSON(github.run_attempt) }} time, Retry 3 times in total"
gh workflow run Retry_Failure_Jobs.yml -F run_id=${{ github.run_id }}
final-execution-jobs:
runs-on: ubuntu-24.04
needs: [rerun-failed-jobs]
if: ${{ always() }}
steps:
- name: Trigger build
if: ${{ needs.rerun-failed-jobs.result == 'skipped' }}
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.MY_SECRET_PAT }}
repository: smallprogram/MyAction
event-type: openwrt_compilation_completed

0 comments on commit 0d1af18

Please sign in to comment.