Skip to content

Commit

Permalink
Switch workflows from set-output to $GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Nov 6, 2022
1 parent 3dfcf3e commit d7428ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
VERSION=$(egrep '^\s*\#\#\s+v.*$' CHANGELOG.md | head -1 | sed -e 's/^\s*\#\#\s\+v//' -e 's/-.*$//')
if [[ $VERSION =~ [13579]$ ]]
then
echo '::set-output name=odd_build::true'
echo 'odd_build=true' >> $GITHUB_OUTPUT
fi
- name: Installing build dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
id: release_data
run: |
URL=$(wget -qO- https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq '.[0].upload_url' | tr -d \")
echo "::set-output name=upload_url::$URL"
echo "upload_url=$URL" >> $GITHUB_OUTPUT
VERSION=$(wget -qO- https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq '.[0].tag_name' | tr -d \"v)
echo "::set-output name=version::$VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
RPM_VERSION=$(echo ${VERSION}.$(date +'%g%j') | sed -e 's/-/_/g')
echo "::set-output name=rpm_version::$RPM_VERSION"
echo "rpm_version=$RPM_VERSION" >> $GITHUB_OUTPUT
DEB_VERSION=${VERSION}.$(date +'%g%j')
echo "::set-output name=deb_version::$DEB_VERSION"
echo "deb_version=$DEB_VERSION" >> $GITHUB_OUTPUT
- name: Push deb to S3
# Send deb file to https://ksp-ckan.s3-us-west-2.amazonaws.com/
uses: jakejarvis/s3-sync-action@master
Expand Down

0 comments on commit d7428ae

Please sign in to comment.