Skip to content

Commit

Permalink
Fix actions set-output deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
dagleaves committed Jun 20, 2023
1 parent 98b4a5c commit b4113d1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cookiecutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Check if there are changes
id: changes
run: echo "::set-output name=changed::$(git status --porcelain | wc -l)"
run: echo "changed=$(git status --porcelain | wc -l)" >> $GITHUB_OUTPUT

- name: apply additional changes and fixes
if: steps.changes.outputs.changed > 0
Expand All @@ -39,8 +39,8 @@ jobs:
run: |
CURRENT_VERSION=$(git show HEAD:.cruft.json | jello -r "_['commit'][:8]")
NEXT_VERSION=$(jello -r "_['commit'][:8]" < .cruft.json)
echo ::set-output name="current_version::$CURRENT_VERSION"
echo ::set-output name="next_version::$NEXT_VERSION"
echo "current_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
echo "next_version=$NEXT_VERSION" >> $GITHUB_OUTPUT
- name: Get changelog
id: get_changelog
Expand All @@ -60,7 +60,7 @@ jobs:
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo ::set-output name="changelog::$body"
echo "changelog=$body" >> $GITHUB_OUTPUT
# behaviour if PR already exists: https://github.com/marketplace/actions/create-pull-request#action-behaviour
- name: Create Pull Request
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
id: check_for_outdated_dependencies
run: |
body=$(poetry show -o -n)
echo ::set-output name="body::$body"
echo "body=$body" >> $GITHUB_OUTPUT
- name: Format PR message
if: ${{ steps.check_for_outdated_dependencies.outputs.body != 0 }}
Expand All @@ -35,7 +35,7 @@ jobs:
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo ::set-output name="body::$body"
echo "body=$body" >> $GITHUB_OUTPUT
- name: Update outdated packages
if: ${{ steps.check_for_outdated_dependencies.outputs.body != 0 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/draft_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: |
poetry version ${{ github.event.inputs.version }}
version=$(poetry version --short)
echo ::set-output name="version::$version"
echo "version=$version" >> $GITHUB_OUTPUT
- name: Update changelog
id: changelog
shell: bash
Expand All @@ -31,7 +31,7 @@ jobs:
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo ::set-output name="body::$body"
echo "body=$body" >> $GITHUB_OUTPUT
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Contributing guide documentation (#66)
- API reference documentation (#50)
- Getting started guide (#48)

### Fixed

- GitHub workflow set-output deprecation (#70)

0 comments on commit b4113d1

Please sign in to comment.