Skip to content

Commit

Permalink
Use GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Aug 13, 2023
1 parent a2b9aa4 commit 3f97b93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
new_version=$(micromamba list -n check-env "$pkgname" --json | jq -r '.[0].version')
if [[ "$new_version" != "$old_version" ]]; then
sed -i "s/$old_version/$new_version/g" environment.yml
echo "::set-output name=pkgname::$pkgname"
echo "::set-output name=new-version::$new_version"
echo "pkgname=$pkgname" >> "$GITHUB_OUTPUT"
echo "new_version=$new_version" >> "$GITHUB_OUTPUT"
fi
- uses: peter-evans/create-pull-request@0dfc93c1049996241252d9dc45a270b7c12dec6b
if: steps.versions.outputs.pkgname
Expand All @@ -51,4 +51,4 @@ jobs:
bash -xc 'tmp=$(mktemp -d) && git clone ${{ github.server_url }}/${{ github.repository }} $tmp && cd $tmp && git tag ${{ steps.versions.outputs.new-version }} && git push --tags'
```
branch: v${{ steps.versions.outputs.new-version }}
delete-branch: true
delete-branch: true

0 comments on commit 3f97b93

Please sign in to comment.