Skip to content

Commit

Permalink
Migrate from set-output to save-state
Browse files Browse the repository at this point in the history
  • Loading branch information
acerspyro committed Nov 18, 2024
1 parent c79bca0 commit 1069a9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/gemfury-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ on:
description: Release tag
required: true
env:
RELEASES_URL: 'https://github.com/notion-enhancer/notion-repackaged/releases'
RELEASES_URL: "https://github.com/notion-enhancer/notion-repackaged/releases"
RELEASE_VERSION: "${{ github.event_name == 'release' && github.event.release.tag_name || github.event.inputs.release_tag }}"
GEMFURY_PUSH_URL: 'push.fury.io/notion-repackaged/'
GEMFURY_PUSH_URL: "push.fury.io/notion-repackaged/"

jobs:
strip-revision:
Expand All @@ -22,7 +22,7 @@ jobs:
- id: strip-revision
run: |
RELEASE_VERSION_REV_STRIPPED=$(echo $RELEASE_VERSION | sed 's/^v//')
echo "::set-output name=release_version_rev_stripped::$RELEASE_VERSION_REV_STRIPPED"
echo "::save-state name=release_version_rev_stripped::$RELEASE_VERSION_REV_STRIPPED"
outputs:
release_version_rev_stripped: ${{ steps.strip-revision.outputs.release_version_rev_stripped }}

Expand All @@ -37,9 +37,9 @@ jobs:
package_name: [notion-app, notion-app-enhanced]
include:
- package_type: deb
filename_format: '{0}_{1}_amd64.deb'
filename_format: "{0}_{1}_amd64.deb"
- package_type: rpm
filename_format: '{0}-{1}.x86_64.rpm'
filename_format: "{0}-{1}.x86_64.rpm"
steps:
- name: Reupload artifacts to Gemfury
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/notion-repackaged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
run: |
source notion-repackaged.sh
echo "::set-output name=notion_version::$NOTION_VERSION"
echo "::set-output name=notion_repackaged_revision::$NOTION_REPACKAGED_REVISION"
echo "::set-output name=notion_download_hash::$NOTION_DOWNLOAD_HASH"
echo "::set-output name=notion_enhancer_desktop_commit::$NOTION_ENHANCER_DESKTOP_COMMIT"
echo "::save-state name=notion_version::$NOTION_VERSION"
echo "::save-state name=notion_repackaged_revision::$NOTION_REPACKAGED_REVISION"
echo "::save-state name=notion_download_hash::$NOTION_DOWNLOAD_HASH"
echo "::save-state name=notion_enhancer_desktop_commit::$NOTION_ENHANCER_DESKTOP_COMMIT"
NOTION_REPACKAGED_VERSION_REV="${NOTION_VERSION}-${NOTION_REPACKAGED_REVISION}"
echo "::set-output name=notion_repackaged_version_rev::$NOTION_REPACKAGED_VERSION_REV"
echo "::save-state name=notion_repackaged_version_rev::$NOTION_REPACKAGED_VERSION_REV"
outputs:
notion_version: ${{ steps.preload-variables.outputs.notion_version }}
notion_repackaged_revision: ${{ steps.preload-variables.outputs.notion_repackaged_revision }}
Expand Down

0 comments on commit 1069a9a

Please sign in to comment.