Skip to content

Commit

Permalink
fix: fix runtime version error inside docker image (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
HADB authored Mar 14, 2024
1 parent 4f4e52c commit f43bebc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
outputs:
released: ${{ steps.python-semantic-release.outputs.released }}
version: ${{ steps.python-semantic-release.outputs.version }}
commit_sha: ${{ steps.sha.outputs.new_sha }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -27,7 +28,12 @@ jobs:
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Get Commit SHA
id: sha
run: |
new_sha=$(git rev-parse HEAD)
echo $new_sha
echo "new_sha=$new_sha" >> $GITHUB_OUTPUT
docker:
name: Docker Image
runs-on: ubuntu-latest
Expand All @@ -40,6 +46,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ needs.bump-version.outputs.commit_sha }}

- name: Parse semantic version
id: parse-semver
Expand Down

0 comments on commit f43bebc

Please sign in to comment.