Skip to content

Commit

Permalink
Update workflows to remove deprecated ::set-output. (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyar committed Oct 23, 2023
1 parent 11ab341 commit aa6fedc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
NAME=$(echo ${CURRENT} | sed 's/release-//')
NUMBER=$(echo ${NAME} | sed -E -e 's/[^0-9.]+/./g' -e 's/\.+/./g' -e 's/^\.//' -e 's/\.$//')
NEXT=$(echo ${NUMBER} | awk -F. -v OFS=. '{$NF++;print}')
echo "::set-output name=tag::${NAME}"
echo "::set-output name=next::${NEXT}"
echo "tag=${NAME}" >> "$GITHUB_OUTPUT"
echo "next=${NEXT}" >> "$GITHUB_OUTPUT"
- name: Create release tag
run: |
git tag ${{ steps.version.outputs.tag }}
Expand Down Expand Up @@ -207,10 +207,10 @@ jobs:
ARTIFACT=https://github.com/IronCoreLabs/ironoxide-swig-bindings/releases/download/${NAME}/ironoxide-homebrew.tar.gz
wget -q ${ARTIFACT}
SHA256=$(sha256sum -b ironoxide-homebrew.tar.gz | awk '{print $1}')
echo "::set-output name=tag::${NAME}"
echo "::set-output name=pr_branch::ironoxide-swig-bindings-${NAME}"
echo "::set-output name=artifact::${ARTIFACT}"
echo "::set-output name=sha256::${SHA256}"
echo "tag=${NAME}" >> "$GITHUB_OUTPUT"
echo "pr_branch=ironoxide-swig-bindings-${NAME}" >> "$GITHUB_OUTPUT"
echo "artifact=${ARTIFACT}" >> "$GITHUB_OUTPUT"
echo "sha256=${SHA256}" >> "$GITHUB_OUTPUT"
- name: Edit files for pending release
run: |
sed -i -e 's,^\( *url "\)[^"]*\("\)$,\1${{ steps.vars.outputs.artifact }}\2,' Formula/ironoxide.rb
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/start-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
CURRENT=$(basename ${{ github.ref }})
NAME=$(echo ${CURRENT} | sed 's/release-//')
NUMBER=$(echo ${NAME} | sed -E -e 's/[^0-9.]+/./g' -e 's/\.+/./g' -e 's/^\.//' -e 's/\.$//')
echo "::set-output name=tag::${NAME}"
echo "::set-output name=dewey::${NUMBER}"
echo "tag=${NAME}" >> "$GITHUB_OUTPUT"
echo "dewey=${NUMBER}" >> "$GITHUB_OUTPUT"
- name: Edit files for release
run: .github/set-versions.sh ${{ steps.version.outputs.dewey }}
- name: Update Cargo.lock
Expand Down

0 comments on commit aa6fedc

Please sign in to comment.