Skip to content

Commit

Permalink
fix (cd): try 'with: token: GH_PAT' in the checkout action
Browse files Browse the repository at this point in the history
  • Loading branch information
bionicles committed Dec 26, 2023
1 parent ab5c1a3 commit 5a9c0af
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
environment: cicd
steps:
- uses: actions/checkout@v4
with:
token: ${{secrets.GH_PAT}}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -70,14 +72,9 @@ jobs:
- name: Update README
run: TREE_PLUS_UPDATE_README=YES python tree_plus_src/deploy.py
- name: Commit Updates
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
run: |
echo "Token Length: ${#GITHUB_TOKEN}"
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -am "cd: increment version.py; update readme [skip ci]"
git push https://bionicles:${GITHUB_TOKEN}@github.com/bionicles/tree_plus.git
git push https://github.com/bionicles/tree_plus.git
# - name: Publish to PyPI
# if: steps.test_again.outputs.success == 'true'
# uses: pypa/gh-action-pypi-publish@v1.4.2
Expand Down

0 comments on commit 5a9c0af

Please sign in to comment.