Skip to content

Commit

Permalink
switch to secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
carlHandy committed Jul 18, 2024
1 parent ff19b07 commit 9730a18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/scripts/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ NEW_VERSION=${NEW_VERSION#v}
sed -i "s/Version: [0-9.]\+/Version: $NEW_VERSION/" main.php

# Commit the change
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add main.php
git commit -m "Bump version to $NEW_VERSION"

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
- name: Update version in main.php
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "Carl Handy"
Expand Down

0 comments on commit 9730a18

Please sign in to comment.