Skip to content

Commit 7509af7

Browse files
committed
chore: fix ci push error
1 parent e84def1 commit 7509af7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/update-types.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
needs: check
4141
if: ${{ needs.check.outputs.need_build == 'true' }}
4242
runs-on: ubuntu-latest
43+
permissions:
44+
contents: write
4345

4446
steps:
4547
- uses: actions/checkout@v4
@@ -68,13 +70,13 @@ jobs:
6870
rm -rf types
6971
mkdir -p types
7072
cp -r pdfjs/build/types/. types/
71-
echo "${{ needs.check.outputs.commit_hash }}" > pdfjs-commit.txt
73+
# echo "${{ needs.check.outputs.commit_hash }}" > pdfjs-commit.txt
7274
7375
- name: Commit and push updated types
7476
run: |
7577
git config user.name "github-actions[bot]"
7678
git config user.email "github-actions[bot]@users.noreply.github.com"
77-
git add types pdfjs-commit.txt
79+
git add types
7880
if git diff --cached --quiet; then
7981
echo "✅ No changes to commit."
8082
else

0 commit comments

Comments
 (0)