Skip to content

Commit 0959f90

Browse files
authored
Fix push tag workflow (#5082)
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.
1 parent 3e35c8f commit 0959f90

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/performance.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
body="${body//'%'/'%25'}"
163163
body="${body//$'\n'/'%0A'}"
164164
body="${body//$'\r'/'%0D'}"
165-
echo "::set-output name=body::$body"
165+
echo "body=$body" >> $GITHUB_OUTPUT
166166
167167
- name: Publish Results
168168
run: |

.github/workflows/push-tag.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ jobs:
2424
- name: Test if tag is needed
2525
run: |
2626
git log ${{ github.event.before }}...${{ github.event.after }} | tee main.log
27-
version=$(grep 'version =' Cargo.toml | head -n 1 | sed 's/.*"\(.*\)"/\1/')
27+
version=$(grep '^version =' Cargo.toml | head -n 1 | sed 's/.*"\(.*\)"/\1/')
2828
echo "version: $version"
29-
echo "::set-output name=version::$version"
30-
echo "::set-output name=sha::$(git rev-parse HEAD)"
29+
echo "version=$VERSION" >> $GITHUB_OUTPUT
30+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
3131
if grep -q "automatically-tag-and-release-this-commit" main.log; then
3232
echo push-tag
33-
echo "::set-output name=push_tag::yes"
33+
echo "push_tag=yes" >> $GITHUB_OUTPUT
3434
else
3535
echo no-push-tag
36-
echo "::set-output name=push_tag::no"
36+
echo "push_tag=no" >> $GITHUB_OUTPUT
3737
fi
3838
id: tag
3939
- name: Push the tag

0 commit comments

Comments
 (0)