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.
This commit is contained in:
2
.github/workflows/performance.yml
vendored
2
.github/workflows/performance.yml
vendored
@@ -162,7 +162,7 @@ jobs:
|
|||||||
body="${body//'%'/'%25'}"
|
body="${body//'%'/'%25'}"
|
||||||
body="${body//$'\n'/'%0A'}"
|
body="${body//$'\n'/'%0A'}"
|
||||||
body="${body//$'\r'/'%0D'}"
|
body="${body//$'\r'/'%0D'}"
|
||||||
echo "::set-output name=body::$body"
|
echo "body=$body" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Publish Results
|
- name: Publish Results
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
10
.github/workflows/push-tag.yml
vendored
10
.github/workflows/push-tag.yml
vendored
@@ -24,16 +24,16 @@ jobs:
|
|||||||
- name: Test if tag is needed
|
- name: Test if tag is needed
|
||||||
run: |
|
run: |
|
||||||
git log ${{ github.event.before }}...${{ github.event.after }} | tee main.log
|
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 "version: $version"
|
||||||
echo "::set-output name=version::$version"
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=sha::$(git rev-parse HEAD)"
|
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
||||||
if grep -q "automatically-tag-and-release-this-commit" main.log; then
|
if grep -q "automatically-tag-and-release-this-commit" main.log; then
|
||||||
echo push-tag
|
echo push-tag
|
||||||
echo "::set-output name=push_tag::yes"
|
echo "push_tag=yes" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo no-push-tag
|
echo no-push-tag
|
||||||
echo "::set-output name=push_tag::no"
|
echo "push_tag=no" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
id: tag
|
id: tag
|
||||||
- name: Push the tag
|
- name: Push the tag
|
||||||
|
|||||||
Reference in New Issue
Block a user