Skip to content

Commit

Permalink
📝 Use pre-step instead of pre
Browse files Browse the repository at this point in the history
  • Loading branch information
elgohr committed Dec 1, 2022
1 parent ac21f5d commit d2068fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2068fd

Please sign in to comment.