Skip to content

Commit

Permalink
build: remove deprecated set-output usages
Browse files Browse the repository at this point in the history
  • Loading branch information
jstewmon committed Jul 1, 2024
1 parent 46a5c37 commit e6d5662
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
id: get-py-path
shell: bash
run: |
echo "::set-output name=path::$(which python)"
echo "path=$(which python)" >> $GITHUB_OUTPUT
# Set the current month and year (used for cache key)
- name: "Get Date"
Expand All @@ -41,7 +41,7 @@ jobs:
# tbh I have yet to find the docs where this output format is
# defined, but I copied this from the official cache action's README.
run: |
echo "::set-output name=date::$(/bin/date -u '+%Y%m')"
echo "date=$(/bin/date -u '+%Y%m')" >> $GITHUB_OUTPUT
shell: bash

# Generate the lockfile
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
id: get-py-path
shell: bash
run: |
echo "::set-output name=path::$(which python)"
echo "path=$(which python)" >> $GITHUB_OUTPUT
# Set the current month and year (used for cache key)
- name: "Get Date"
Expand All @@ -131,7 +131,7 @@ jobs:
# tbh I have yet to find the docs where this output format is
# defined, but I copied this from the official cache action's README.
run: |
echo "::set-output name=date::$(/bin/date -u '+%Y%m')"
echo "date=$(/bin/date -u '+%Y%m')" >> $GITHUB_OUTPUT
shell: bash

# Generate the lockfile
Expand Down Expand Up @@ -274,7 +274,7 @@ jobs:
id: get-version
shell: bash
run: |
echo "::set-output name=version::$(cargo pkgid | tr '#' '\n' | tail -n 1 | tr ':' ' ' | awk '{print $2}')"
echo "version=$(cargo pkgid | tr '#' '\n' | tail -n 1 | tr ':' ' ' | awk '{print $2}')" >> $GITHUB_OUTPUT
- name: "(DEBUG) log current version"
shell: bash
Expand All @@ -285,13 +285,13 @@ jobs:
id: cargo-version
shell: bash
run: |
echo "::set-output name=new::$(./scripts/newCargoVersion.sh)"
echo "new=$(./scripts/newCargoVersion.sh)" >> $GITHUB_OUTPUT
- name: "Check if new NPM version"
id: npm-version
shell: bash
run: |
echo "::set-output name=new::$(./scripts/newNpmVersion.sh)"
echo "new=$(./scripts/newNpmVersion.sh)" >> $GITHUB_OUTPUT
# Note we don't check for a new python version b/c there are so
# many python artifacts that it is impractical. Instead we just
Expand Down

0 comments on commit e6d5662

Please sign in to comment.