Skip to content

Commit

Permalink
Updating deprecated set-output
Browse files Browse the repository at this point in the history
Fixing deprecation warnings for set-output by using GITHUB_OUTPUT environment files as in https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
  • Loading branch information
alexanderrichards authored Nov 27, 2023
1 parent 0aadbff commit c95f24b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci_push_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
fi
fi
done
echo "::set-output name=files_to_lint::$files_to_lint";
echo "files_to_lint=$files_to_lint" >> $GITHUB_OUTPUT;
- name: Fail on linting violations
if: steps.flake8.outputs.files_to_lint != ''
run: exit 1
Expand All @@ -86,9 +86,9 @@ jobs:
- name: Set autopep8 branch name
id: vars
run: |
echo ::set-output name=branch-name::"autopep8-patches/${{ github.head_ref }}"
echo "branch-name=autopep8-patches/${{ github.head_ref }}" >> $GITHUB_OUTPUT
PR_NUMBER=`echo ${{ github.ref_name }} | cut -f 1 -d '/'`
echo ::set-output name=pr-number::"$PR_NUMBER"
echo "pr-number=$PR_NUMBER" >> $GITHUB_OUTPUT
- name: Create Pull Request
if: steps.autopep8.outputs.exit-code == 2
uses: peter-evans/create-pull-request@v4
Expand Down

0 comments on commit c95f24b

Please sign in to comment.