Skip to content

Commit 24c4292

Browse files
authored
Update aw (#99)
* recompile workflow Signed-off-by: Jim Bugwadia <jim@nirmata.com> * fix workflow Signed-off-by: Jim Bugwadia <jim@nirmata.com> * update lock file Signed-off-by: Jim Bugwadia <jim@nirmata.com> --------- Signed-off-by: Jim Bugwadia <jim@nirmata.com>
1 parent 92eb560 commit 24c4292

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

.github/workflows/pr-branch-updater.lock.yml

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/pr-branch-updater.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ steps:
1515
env:
1616
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1717
run: |
18+
set -euo pipefail
1819
mkdir -p /tmp/gh-aw/agent
1920
gh api --paginate "repos/${{ github.repository }}/pulls?state=open&per_page=100" \
2021
| jq -s 'add | map({number, title, draft, head_ref: .head.ref, base_ref: .base.ref})' \
2122
> /tmp/gh-aw/agent/open-prs.json
2223
COUNT=$(jq length /tmp/gh-aw/agent/open-prs.json)
2324
echo "Found $COUNT open PRs"
24-
jq -r '.[] | " #\(.number) [\(if .draft then \"draft\" else \"open\" end)] \(.head_ref) -> \(.base_ref): \(.title)"' \
25+
jq -r '.[] | " #\(.number) [\(if .draft then "draft" else "open" end)] \(.head_ref) -> \(.base_ref): \(.title)"' \
2526
/tmp/gh-aw/agent/open-prs.json
2627
safe-outputs:
2728
noop: {}

0 commit comments

Comments
 (0)