Skip to content

Commit fdd125a

Browse files
committed
test if setting this test if this can push
1 parent e717d1d commit fdd125a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/Publish-Package.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,14 @@ jobs:
5757
poetry version prepatch
5858
5959
- name: Commit files
60-
if: ${{ github.event.release.target_commitish == 'main' }}
6160
run: |
6261
git config --local user.email "[email protected]"
6362
git config --local user.name "GitHub Action"
6463
git pull --tags -f
6564
git commit -m "Bump package version" -a
65+
git config credential.helper '!f() { sleep 1; echo "username=oauth2"; echo "password=${GIT_PASSWORD}"; }; f'
6666
6767
- name: Push changes
68-
if: ${{ github.event.release.target_commitish == 'main' }}
6968
uses: CasperWA/push-protected@v2
7069
with:
7170
token: ${{ secrets.ADMIN_PAT }}

0 commit comments

Comments
 (0)