Skip to content

Commit

Permalink
Updating config for versions update action
Browse files Browse the repository at this point in the history
  • Loading branch information
zodac committed Aug 21, 2024
1 parent 0d91d2b commit f316cb9
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/version_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
name: Versions Update
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
actions: write
contents: write
security-events: write

steps:
Expand Down Expand Up @@ -52,11 +52,16 @@ jobs:
id: application_tests
run: mvn clean install -Dall

- name: Commit and push changes
- name: Commit changes
if: steps.application_tests.outcome == 'success'
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
git config user.name github-actions
git config user.email "actions@github.com"
git add .
git commit -m 'Updating versions'
git push
- name: Push changes
uses: ad-m/github-push-action@v0.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master

0 comments on commit f316cb9

Please sign in to comment.