Skip to content

Commit

Permalink
Use non-deprecated actions inputs (#219)
Browse files Browse the repository at this point in the history
Use `pre_sleep` in push-protected action.
Use `release/v1` version for gh-action-pypi-publish action.
  • Loading branch information
CasperWA authored Nov 23, 2023
1 parent 0443c04 commit 5c3db87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ jobs:
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
branch: ${{ inputs.release_branch }}
sleep: 15
pre_sleep: 15
force: true
tags: true
unprotect_reviews: true
Expand Down Expand Up @@ -308,15 +308,15 @@ jobs:

- name: Publish package to TestPyPI
if: inputs.test && inputs.publish_on_pypi && inputs.python_package
uses: pypa/gh-action-pypi-publish@v1.8.10
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PyPI_token }}
repository-url: https://test.pypi.org/legacy/

- name: Publish package to PyPI
if: ( ! inputs.test ) && inputs.publish_on_pypi && inputs.python_package
uses: pypa/gh-action-pypi-publish@v1.8.10
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PyPI_token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_automerge_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
branch: ${{ github.event.pull_request.head.ref }}
sleep: 15
pre_sleep: 15
unprotect_reviews: true

- name: Activate auto-merge
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_cd_updated_default_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ jobs:
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
branch: ${{ inputs.default_repo_branch }}
sleep: 15
pre_sleep: 15
force: true
tags: true
unprotect_reviews: true
Expand Down Expand Up @@ -496,5 +496,5 @@ jobs:
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
branch: ${{ inputs.permanent_dependencies_branch }}
sleep: 15
pre_sleep: 15
force: ${{ env.FORCE_PUSH }}

0 comments on commit 5c3db87

Please sign in to comment.