Skip to content

Commit

Permalink
ci: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicconike committed Jun 16, 2024
1 parent e54511b commit 94af09f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/steam-stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
HOME: /root
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REF_NAME: ${{ github.ref_name }}
GITHUB_HEAD_REF: ${{ github.head_ref }}

- name: Configure Git & Commit Changes
run: |
Expand All @@ -43,7 +44,9 @@ jobs:
git add .
git commit -m "Updated Steam Stats" || echo "No changes to commit"
if [ "${{ github.event_name }}" = "pull_request" ]; then
git pull --rebase origin ${{ github.head_ref }}
git push origin HEAD:${{ github.head_ref }}
else
git pull --rebase origin ${{ github.ref_name }}
git push origin HEAD:${{ github.ref_name }}
fi

0 comments on commit 94af09f

Please sign in to comment.