Skip to content

Commit

Permalink
Update the Publish.yml to use https://github.com/CasperWA/push-protected
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasantha-Kumar-J committed Jun 21, 2022
1 parent 87a8ccb commit c44bf57
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ jobs:
- name: Push changes to the Main branch
if: ${{ startsWith(github.event.release.target_commitish, 'main') }}
uses: ad-m/github-push-action@master
uses: CasperWA/push-protected@v2.10.0
with:
github_token: ${{ secrets.ADMIN_PAT }}
branch: ${{ github.event.release.target_commitish }}
token: ${{ secrets.ADMIN_PAT }}
branch: ${{ github.event.release.target_commitish }}
unprotect_reviews: true

# To Test the Publish use : poetry publish --build --username __token__ --password ${{ secrets.TEST_PYPI_TOKEN }} -r test-pypi
- name: Build Python package and publish to PyPI
Expand Down

0 comments on commit c44bf57

Please sign in to comment.