Skip to content

Commit

Permalink
improvements to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Bareiss committed Aug 27, 2024
1 parent 211fc65 commit 5153030
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update_splunk_tas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,21 @@ jobs:
- name: Commit and push changes if any
if: env.changes_detected == 'true'
env:
GH_PAT: ${{ secrets.GH_PAT }}
run: |
git config user.name 'Splunk TA Updater [bot]'
git config user.email '[email protected]'
git checkout -b auto-ta-update
git add .
git commit -m "Automated Splunk TA Update"
git push origin auto-ta-update
git push https://${GH_PAT}@github.com/${GITHUB_REPOSITORY}.git HEAD:auto-ta-update
- name: Create Pull Request
if: env.changes_detected == 'true'
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_PAT }}
commit-message: "Automated Splunk TA Update"
branch: auto-ta-update
title: "Automated Splunk TA Update"
Expand Down

0 comments on commit 5153030

Please sign in to comment.