Skip to content

Commit 9ec14ad

Browse files
committed
CI: Use proper GitHub Action output syntax for labeler
1 parent 4ec9a8f commit 9ec14ad

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/label-pull-requests-all.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ jobs:
2020
- run: |
2121
listOpenIssues="$(gh pr list --repo andygrunwald/go-jira --state open --limit 100 --json number --jq 'map(.number | tostring)')"
2222
23-
echo 'LIST_OPEN_ISSUES='$listOpenIssues >> $GITHUB_ENV
23+
echo "LIST_OPEN_ISSUES=$listOpenIssues\n" >> $GITHUB_OUTPUT
24+
id: find_all_open_prs
2425
env:
2526
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2627
2728
- uses: actions/labeler@v5
2829
with:
29-
sync-labels: true
30-
pr-number: "$LIST_OPEN_ISSUES"
30+
sync-labels: false
31+
pr-number: ${{ steps.find_all_open_prs.outputs.LIST_OPEN_ISSUES }}

.github/workflows/label-pull-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
steps:
1616
- uses: actions/labeler@v5
1717
with:
18-
sync-labels: true
18+
sync-labels: false

0 commit comments

Comments
 (0)