Skip to content

Commit

Permalink
replace deprecated set-output w/ GITHUB_OUTPUT (#146)
Browse files Browse the repository at this point in the history
Github deprecated using the set-output command in workflows/actions.
Instead, we are supposed to use a environment file at ${GITHUB_OUTPUT}.
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
  • Loading branch information
cognifloyd committed Dec 6, 2023
1 parent f6a25f5 commit c0e888b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/actions/extract-pack-meta/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ runs:
id: collected
shell: bash
run: |
echo "::set-output name=pack_ref::${PACK_REF}"
echo "::set-output name=pack_name::${PACK_NAME}"
echo "::set-output name=pack_description::${PACK_DESCRIPTION}"
echo "::set-output name=pack_path::${PACK_PATH}"
echo "::set-output name=in_submodule::${IN_SUBMODULE}"
echo "::set-output name=in_subdir::${IN_SUBDIR}"
echo "pack_ref=${PACK_REF}" >> ${GITHUB_OUTPUT}
echo "pack_name=${PACK_NAME}" >> ${GITHUB_OUTPUT}
echo "pack_description=${PACK_DESCRIPTION}" >> ${GITHUB_OUTPUT}
echo "pack_path=${PACK_PATH}" >> ${GITHUB_OUTPUT}
echo "in_submodule=${IN_SUBMODULE}" >> ${GITHUB_OUTPUT}
echo "in_subdir=${IN_SUBDIR}" >> ${GITHUB_OUTPUT}
2 changes: 1 addition & 1 deletion .github/actions/py-dependencies/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ runs:
run: |
echo "::group::Create ~/virtualenv"
PIP_VERSION=$(grep '^PIP_VERSION' Makefile | awk '{print $3}')
echo "::set-output name=pip-version::${PIP_VERSION}"
echo "pip-version=${PIP_VERSION}" >> ${GITHUB_OUTPUT}
[[ -x "${VIRTUALENV_DIR}/bin/python" ]] || virtualenv --pip "${PIP_VERSION}" ~/virtualenv
${VIRTUALENV_DIR}/bin/pip install -q -U "pip==${PIP_VERSION}" setuptools
echo "::endgroup::"
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
echo "Unable to retrieve pack name."
exit 1
fi
echo "::set-output name=pack-name::${PACK_NAME}"
echo "pack-name=${PACK_NAME}" >> ${GITHUB_OUTPUT}
- name: Add CI vars to env context
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pack-bootstrap_repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ jobs:
id: collected
shell: bash
run: |
echo "::set-output name=pack_repo::${{ format('{0}/{1}-{2}', inputs.pack_org, inputs.pack_repo_prefix, inputs.pack_name) }}"
echo "::set-output name=homepage::${{ inputs.homepage }}"
echo "pack_repo=${{ format('{0}/{1}-{2}', inputs.pack_org, inputs.pack_repo_prefix, inputs.pack_name) }}" >> ${GITHUB_OUTPUT}
echo "homepage=${{ inputs.homepage }}" >> ${GITHUB_OUTPUT}
- name: Check if pack repo needs to be created
id: do-create-repo
Expand Down

0 comments on commit c0e888b

Please sign in to comment.