Skip to content

Commit

Permalink
Fix push tag workflow (#5082)
Browse files Browse the repository at this point in the history
This commit fixes the `push-tag.yml` workflow to work with the new
`Cargo.toml` manifest since workspace inheritance was added. This
additionally fixes some warnings coming up on CI about our usage of
deprecated features on github actions.
  • Loading branch information
alexcrichton authored Oct 20, 2022
1 parent 3e35c8f commit 0959f90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo "::set-output name=body::$body"
echo "body=$body" >> $GITHUB_OUTPUT
- name: Publish Results
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/push-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
- name: Test if tag is needed
run: |
git log ${{ github.event.before }}...${{ github.event.after }} | tee main.log
version=$(grep 'version =' Cargo.toml | head -n 1 | sed 's/.*"\(.*\)"/\1/')
version=$(grep '^version =' Cargo.toml | head -n 1 | sed 's/.*"\(.*\)"/\1/')
echo "version: $version"
echo "::set-output name=version::$version"
echo "::set-output name=sha::$(git rev-parse HEAD)"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
if grep -q "automatically-tag-and-release-this-commit" main.log; then
echo push-tag
echo "::set-output name=push_tag::yes"
echo "push_tag=yes" >> $GITHUB_OUTPUT
else
echo no-push-tag
echo "::set-output name=push_tag::no"
echo "push_tag=no" >> $GITHUB_OUTPUT
fi
id: tag
- name: Push the tag
Expand Down

0 comments on commit 0959f90

Please sign in to comment.