Skip to content

Commit

Permalink
fix: Misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolatimeus committed Aug 11, 2023
1 parent d40e31d commit 4c84f77
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
-Dexec.executable=echo
-Dexec.args='${project.version}'
--quiet exec:exec --non-recursive
-Pjava8
)\" >> \"${GITHUB_OUTPUT}\""
shell: bash

Expand All @@ -43,7 +44,7 @@ jobs:

- name: Files exist
id: get-old-text
if: steps.check_files.outputs.exists == true && github.event.inputs.overwrite == false
if: steps.check_files.outputs.exists == 'true' && github.event.inputs.overwrite == 'false'
run: |
awk '/Description:/ {found=1; next} /^$/ {found=0} found {print}' ./kura/distrib/RELEASE_NOTES.txt > description.txt
awk '/Target Environments:/ {found=1; next} /^$/ {found=0} found {print}' ./kura/distrib/RELEASE_NOTES.txt > target-env.txt
Expand Down Expand Up @@ -72,17 +73,17 @@ jobs:
- name: Files exist write description
id: get-description
if: steps.check_files.outputs.exists == true && github.event.inputs.overwrite == false
if: steps.check_files.outputs.exists == 'true' && github.event.inputs.overwrite == 'false'
# Only runs if all of the files exist
run: |
awk 'NR==FNR { desc = (desc == "" ? $0 : desc "\n" $0); next } /\[TODO\]/ && !done { sub(/\[TODO\]/, desc); done=1 } 1' description.txt done=0 RELEASE_NOTES.txt
awk 'NR==FNR { desc = (desc == "" ? $0 : desc "\n" $0); next } /\[TODO\]/ && !done { sub(/\[TODO\]/, desc); done=1 } 1' target-env.txt done=0 RELEASE_NOTES.txt
awk 'NR==FNR { desc = (desc == "" ? $0 : desc "\n" $0); next } /\[TODO\]/ && !done { sub(/\[TODO\]/, desc); done=1 } 1' known-issues.txt done=0 RELEASE_NOTES.txt
awk 'NR==FNR { desc = (desc == "" ? $0 : desc "\n" $0); next } /\[TODO\]/ && !done { sub(/\[TODO\]/, desc); done=1 } 1' description.txt done=0 ./kura/distrib/RELEASE_NOTES.txt > tmpfile && mv tmpfile ./kura/distrib/RELEASE_NOTES.txt
awk 'NR==FNR { desc = (desc == "" ? $0 : desc "\n" $0); next } /\[TODO\]/ && !done { sub(/\[TODO\]/, desc); done=1 } 1' target-env.txt done=0 ./kura/distrib/RELEASE_NOTES.txt > tmpfile && mv tmpfile ./kura/distrib/RELEASE_NOTES.txt
awk 'NR==FNR { desc = (desc == "" ? $0 : desc "\n" $0); next } /\[TODO\]/ && !done { sub(/\[TODO\]/, desc); done=1 } 1' known-issues.txt done=0 ./kura/distrib/RELEASE_NOTES.txt > tmpfile && mv tmpfile ./kura/distrib/RELEASE_NOTES.txt
shell: bash

- name: Files exist clean up
id: clean-up-files
if: steps.check_files.outputs.exists == true && github.event.inputs.overwrite == false
if: steps.check_files.outputs.exists == 'true' && github.event.inputs.overwrite == 'false'
# Only runs if all of the files exist
run: |
rm description.txt
Expand Down

0 comments on commit 4c84f77

Please sign in to comment.