Skip to content

Commit

Permalink
Fix: Don't use ${{}} in message text because it gets escaped
Browse files Browse the repository at this point in the history
Fix printing the deprecation message of reference-version. Only show the
variable name here without the full GitHub Actions variable syntax.
Otherwise it will be replaced with the content of the variable.
  • Loading branch information
bjoernricks committed May 5, 2023
1 parent c4c52c0 commit 58879d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference-version/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
echo "REF=${GITHUB_REF}" >> $GITHUB_ENV;
echo "VERSION=${GITHUB_REF##refs/*/}" >> $GITHUB_ENV;
fi;
echo "::warning title=reference-version is deprecated:: The reference-version action is deprecated. Please use ${{ github.ref_name }} instead. See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context for more details."
echo "::warning title=reference-version is deprecated:: The reference-version action is deprecated. Please use `github.ref_name` instead. See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context for more details."
shell: bash
name: Set version in environment
- run: |
Expand Down

0 comments on commit 58879d6

Please sign in to comment.