diff --git a/.github/workflows/cookiecutter.yml b/.github/workflows/cookiecutter.yml index 556f468..5520f09 100644 --- a/.github/workflows/cookiecutter.yml +++ b/.github/workflows/cookiecutter.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index f7a6f51..1b232ea 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -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 }} @@ -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 }} diff --git a/.github/workflows/draft_release.yml b/.github/workflows/draft_release.yml index d1b056c..5615d5c 100644 --- a/.github/workflows/draft_release.yml +++ b/.github/workflows/draft_release.yml @@ -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 @@ -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: diff --git a/CHANGELOG.md b/CHANGELOG.md index f74ab0b..811b5cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)