File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 88jobs :
99 check :
1010 runs-on : windows-latest
11+ outputs :
12+ ref_list : ${{steps.check.outputs.ref_list}}
1113 steps :
1214 - uses : actions/checkout@v4
13- with :
14- token : ${{ secrets.PAT }}
1515 - name : Check
16+ id : check
1617 shell : bash
1718 run : |
1819 git config user.name "github-actions[bot]"
1920 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
2021 git submodule update --init --depth 1 FFmpeg
2122 git -C FFmpeg fetch --tags
2223 git fetch --tags
24+ ref_list=""
2325 for ref_name in `git -C FFmpeg for-each-ref --sort=-taggerdate --format '%(refname:strip=2)' refs/tags |head -n 10`;do
2426 if git rev-parse "${ref_name}" >/dev/null 2>&1; then
2527 echo "skip '${ref_name}'"
3234 git tag ${ref_name}
3335
3436 git push origin ${ref_name}
37+
38+ ref_list="${ref_list},\"${ref_name}\""
3539 fi
3640 done
41+ echo "ref_list=[${ref_list#?}]" >>$GITHUB_OUTPUT
42+ build :
43+ needs : check
44+ if : ${{ needs.check.outputs.ref_list != '[]' }}
45+ strategy :
46+ matrix :
47+ ref_name : ${{fromJson(needs.check.outputs.ref_list)}}
48+ fail-fast : false
49+ uses : ./.github/workflows/build.yml
50+ with :
51+ ref_name : ${{matrix.ref_name}}
You can’t perform that action at this time.
0 commit comments