add permission to push to repository
This commit is contained in:
7
.github/workflows/build-css.yaml
vendored
7
.github/workflows/build-css.yaml
vendored
@@ -8,6 +8,11 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tailwindbuilder:
|
tailwindbuilder:
|
||||||
|
permissions:
|
||||||
|
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||||
|
# added or changed files to the repository.
|
||||||
|
contents: write
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
@@ -24,7 +29,7 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Commit generated stylesheet
|
name: Commit generated stylesheet
|
||||||
run: |
|
run: |
|
||||||
if git diff cmd/styles.css --quiet; then
|
if git diff --quiet cmd/styles.css; then
|
||||||
echo "No changes to commit."
|
echo "No changes to commit."
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user