Skip to content

Commit

Permalink
issue-pr-contrib-metrics.yaml: fix awk redirect, filename typo
Browse files Browse the repository at this point in the history
  • Loading branch information
t-lo committed Nov 9, 2023
1 parent a8b4bbf commit 3e1a27a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/issue-pr-contrib-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ jobs:
echo -e "\n\n# Issue Metrics" >> report.md
# remove full issues list from stats; we only want the summary
tail --lines=+2 issues_open.md | awk '/^\| Title \| URL \| Author \|/{silent=1} {if (silent==0) print $0}'
tail --lines=+2 issues_open.md \
| awk '/^\| Title \| URL \| Author \|/{silent=1} {if (silent==0) print $0}' \
>> report.md
echo -e "\n## New Issues" >> report.md
tail --lines=+2 issues_opened.md >> report.md
Expand All @@ -191,12 +193,14 @@ jobs:
echo -e "\n\n# Pull Requests Metrics" >> report.md
# remove full PRs list from stats; we only want the summary
tail --lines=+2 prs_open.md | awk '/^\| Title \| URL \| Author \|/{silent=1} {if (silent==0) print $0}'
tail --lines=+2 prs_open.md \
| awk '/^\| Title \| URL \| Author \|/{silent=1} {if (silent==0) print $0}' \
>> report.md
echo -e "\n## New PRs" >> report.md
tail --lines=+2 prs_opened.md >> report.md
echo -e "\n## Closed PRs" >> report.md
tail --lines=+2 prss_closed.md >> report.md
tail --lines=+2 prs_closed.md >> report.md
- name: Create issue
uses: peter-evans/create-issue-from-file@v4
Expand Down

0 comments on commit 3e1a27a

Please sign in to comment.