Skip to content

Commit

Permalink
Merge pull request #232 from LyraPhase/fix-203-github-output-deprecation
Browse files Browse the repository at this point in the history
Fix #203: Migrate from ::set-output to using $GITHUB_OUTPUT
  • Loading branch information
trinitronx authored Aug 6, 2024
2 parents 6cae969 + 47fbf40 commit 1c54093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/git-flow-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
ref: master
- name: Extract master SHA
run: echo "::set-output name=sha::$(git rev-parse master)"
run: echo "sha=$(git rev-parse master)" >> "$GITHUB_OUTPUT"
id: master_branch
- name: Check triggering user permissions
id: check_user_permissions
Expand All @@ -43,11 +43,11 @@ jobs:
run: |
bundle exec gem list --quiet --local --exact 'chef' | \
ruby -ne 'version = gsub(/chef\s*\((?<version>.*)\)$/, %q/\k<version>/); \
print "::set-output name=chef_version::#{version.chomp}"'
print "chef_version=#{version.chomp}"' >> "$GITHUB_OUTPUT"
id: extract_chef_version
- name: Set release/chef-version branch name
run: |
echo '::set-output name=branch::release/chef-v${{ steps.extract_chef_version.outputs.chef_version }}'
echo 'branch=release/chef-v${{ steps.extract_chef_version.outputs.chef_version }}' >> "$GITHUB_OUTPUT"
id: chef_release
- uses: peterjgrainger/[email protected]
env:
Expand Down

0 comments on commit 1c54093

Please sign in to comment.