Skip to content

Commit 98ef3b7

Browse files
committed
[workflow] rm PAT
1 parent 07e37ba commit 98ef3b7

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/check.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@ on:
88
jobs:
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}'"
@@ -32,5 +34,18 @@ jobs:
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}}

0 commit comments

Comments
 (0)