Skip to content

Commit

Permalink
Remove legacy templates (#38)
Browse files Browse the repository at this point in the history
* Remove legacy templates

* Test regexp

* Test regexp

* Fix markdown
  • Loading branch information
goruha authored Oct 10, 2023
1 parent 4ebb7b3 commit 93b4c38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 313 deletions.
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,10 @@ runs:
set -e
if [[ "${{ inputs.drift-detection-mode-enabled }}" == "true" ]]; then
grep -Pzo '(.|\n)*(?=_______________ISSUE-MARKDOWN_______________\n)' ${{ steps.vars.outputs.summary_file }} > ${{ steps.vars.outputs.step_summary_file }}
grep -Pzo '(?<=_______________ISSUE-MARKDOWN_______________\n)(.*\n)*' ${{ steps.vars.outputs.summary_file }} > ${{ steps.vars.outputs.issue_file }}
# Split summary to 2 files - issue and step summary files
# Remove \0 at the end of the grep output
grep -Pzo '(.|\n)*(?=_______________ISSUE-MARKDOWN_______________\n)' ${{ steps.vars.outputs.summary_file }} | sed 's/0*$//' > ${{ steps.vars.outputs.step_summary_file }}
grep -Pzo '(?<=_______________ISSUE-MARKDOWN_______________\n)(.|\n)*' ${{ steps.vars.outputs.summary_file }} | sed 's/0*$//' > ${{ steps.vars.outputs.issue_file }}
rm -f ${{ steps.vars.outputs.summary_file }}
else
mv ${{ steps.vars.outputs.summary_file }} ${{ steps.vars.outputs.step_summary_file }}
Expand Down
157 changes: 0 additions & 157 deletions config/atmos_github_summary.yaml

This file was deleted.

154 changes: 0 additions & 154 deletions config/github_issue_description.yaml

This file was deleted.

0 comments on commit 93b4c38

Please sign in to comment.