Skip to content

Commit

Permalink
Update build-policy-sets.yml
Browse files Browse the repository at this point in the history
Use GITHUB_TOKEN as needed
  • Loading branch information
KevinRabun authored Aug 7, 2024
1 parent 94e5dde commit 491431a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-policy-sets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
fi
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
Expand All @@ -44,6 +46,8 @@ jobs:
done
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
Expand Down Expand Up @@ -135,9 +139,11 @@ jobs:
run: git config --global user.name "GitHub Actions" && git config --global user.email "GitHub Actions"

- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git pull
git add ${{ steps.set-output-path.outputs.OUTPUT_FILE_PATH }}
git add $(dirname ${{ matrix.file }})/README.md
git commit -m "Add generated ARM templates and update README.md" --allow-empty
git push --force
git push --force

0 comments on commit 491431a

Please sign in to comment.