Skip to content

Commit

Permalink
use GITHUB_ENV instead of set-output
Browse files Browse the repository at this point in the history
  • Loading branch information
Joon-Klaps committed Jun 10, 2024
1 parent 0e92187 commit fa8656b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ jobs:
- name: Read parameter tip
id: read_tip
run: |
tip=$(cat docs/template/parameter_tip.md)
echo "::set-output name=tip_content::$tip"
tip=$(cat docs/parameter_tip.txt)
echo "tip_content=$tip" >> $GITHUB_ENV
- name: Append content to parameters.md
run: |
tip_content=${{ steps.read_tip.outputs.tip_content }}
modified_content=$(awk '/^#/ { print; print "$tip_content"; exit } 1' docs/parameters.md)
modified_content=$(awk '/^#/ { print; print "${{ env.tip_content }}"; exit } 1' docs/parameters.md)
echo "$modified_content" > docs/parameters.md
- name: Build docs
run: |
Expand Down

0 comments on commit fa8656b

Please sign in to comment.