2525 python-version : " 3.9"
2626 - name : Install Poetry
2727 run : |
28- pip install poetry==1.4.0
28+ pip install poetry
2929 poetry --version
3030 - name : Check if there is a parent commit
3131 id : check-parent-commit
3434 - name : Detect and tag new version
3535 id : check-version
3636 if : steps.check-parent-commit.outputs.sha
37- uses : salsify/action-detect-and-tag-new-version@b1778166f13188a9d478e2d1198f993011ba9864 # v2.0.3
37+ uses : salsify/action-detect-and-tag-new-version@v2
3838 with :
3939 version-command : |
4040 bash -o pipefail -c "poetry version | awk '{ print \$2 }'"
5454 run : |
5555 poetry run pytest --cov=sns_extended_client test --cov-report term-missing
5656 - name : configure aws credentials
57- uses : aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
57+ uses : aws-actions/configure-aws-credentials@v4
5858 with :
5959 role-to-assume : ${{ vars.OIDC_ROLE_NAME }}
6060 role-session-name : publishrolesession
@@ -71,14 +71,14 @@ jobs:
7171 echo "token=$(aws secretsmanager get-secret-value --secret-id ${{ vars.PYPI_TOKEN_NAME }} | jq -r '.SecretString')" >> $GITHUB_OUTPUT
7272 - name : Publish package on TestPyPI
7373 if : " ! steps.check-version.outputs.tag"
74- uses : pypa/gh-action-pypi-publish@f8c70e705ffc13c3b4d1221169b84f12a75d6ca8 # release/v1
74+ uses : pypa/gh-action-pypi-publish@release/v1 # release/v1
7575 with :
7676 user : __token__
7777 password : ${{ steps.get-test-pypi-token.outputs.token }}
7878 repository_url : https://test.pypi.org/legacy/
79- - name : Publish package on PyPI
80- if : steps.check-version.outputs.tag
81- uses : pypa/gh-action-pypi-publish@f8c70e705ffc13c3b4d1221169b84f12a75d6ca8 # release/v1
82- with :
83- user : __token__
84- password : ${{ steps.get-pypi-token.outputs.token }}
79+ # - name: Publish package on PyPI
80+ # if: steps.check-version.outputs.tag
81+ # uses: pypa/gh-action-pypi-publish@f8c70e705ffc13c3b4d1221169b84f12a75d6ca8 # release/v1
82+ # with:
83+ # user: __token__
84+ # password: ${{ steps.get-pypi-token.outputs.token }}
0 commit comments