📝 Use pre-step instead of pre

This commit is contained in:
Lars Gohr
2022-12-01 17:14:59 +01:00
committed by GitHub
parent ac21f5d46d
commit d2068fdcc5

View File

@@ -241,14 +241,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: pre-step
shell: bash
run: echo "release-version=$(echo ${GITHUB_REF:10})" >> $GITHUB_OUTPUT
- name: Publish to Registry
pre: echo ::save-state name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: myDocker/repository
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,${{ env.STATE_RELEASE_VERSION }}"
tags: "latest,${{ steps.pre-step.outputs.release-version }}"
```
#### tag_names