CI: Fix permission issue in static.yml (#65)
This commit was merged in pull request #65.
This commit is contained in:
4
.github/workflows/static.yml
vendored
4
.github/workflows/static.yml
vendored
@@ -11,7 +11,7 @@ on:
|
|||||||
|
|
||||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
pages: write
|
pages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
- name: Write Commit Hash
|
- name: Write Commit Hash
|
||||||
run: |
|
run: |
|
||||||
cat << EOF | tee fortune_generator/json/commit_hash.json > /dev/null
|
cat << EOF | tee fortune_generator/json/commit_hash.json > /dev/null
|
||||||
{"commit_hash": "$(git rev-parse HEAD)"}
|
{ "commit_hash": "$(git rev-parse HEAD)" }
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user