Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Coleen Iona Quadros <[email protected]>
  • Loading branch information
coleenquadros committed Aug 12, 2024
1 parent 747720d commit 3a035f5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/acm-konflux-update-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ jobs:
with:
repository: ${{ matrix.repo }}
fetch-depth: 0
ref: release-2.12
- name: Find github org name from repo name
id: org
run: |

Check failure on line 42 in .github/workflows/acm-konflux-update-pr.yaml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/acm-konflux-update-pr.yaml#L42

shellcheck reported issue in this script: SC2086:info:1:52: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/acm-konflux-update-pr.yaml:42:9: shellcheck reported issue in this script: SC2086:info:1:52: Double quote to prevent globbing and word splitting [shellcheck]
echo "downstream=$(dirname ${{ matrix.repo }})" >> $GITHUB_OUTPUT
- name: Get auth token to create pull request for ${{ matrix.repo }}
- name: Get auth token to list pull request for ${{ matrix.repo }}
if: github.event_name != 'pull_request'
id: pr
uses: getsentry/action-github-app-token@v3
Expand All @@ -52,9 +51,11 @@ jobs:
scope: ${{ steps.org.outputs.downstream }}
- name: List PRs and check for Konflux
id: check-prs
if: github.event_name != 'pull_request'
run: |

Check failure on line 55 in .github/workflows/acm-konflux-update-pr.yaml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/acm-konflux-update-pr.yaml#L55

shellcheck reported issue in this script: SC2086:info:4:33: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/acm-konflux-update-pr.yaml:55:9: shellcheck reported issue in this script: SC2086:info:4:33: Double quote to prevent globbing and word splitting [shellcheck]

Check failure on line 55 in .github/workflows/acm-konflux-update-pr.yaml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/acm-konflux-update-pr.yaml#L55

shellcheck reported issue in this script: SC2086:info:6:33: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/acm-konflux-update-pr.yaml:55:9: shellcheck reported issue in this script: SC2086:info:6:33: Double quote to prevent globbing and word splitting [shellcheck]
PR_URL=$(gh pr list --repo ${{ matrix.repo }} --state open | grep -i "Konflux")
if [ ! -z "$PR_URL" ]; then
PR_LIST=$(gh pr list --repo ${{ matrix.repo }} --state open --json title)
KONFLUX_PR=$(echo "$PR_LIST" | jq '.[] | select(.title | ascii_downcase | contains("konflux"))')
if [ -n "$KONFLUX_PR" ]; then
echo "konflux_pr_exists=1" >> $GITHUB_OUTPUT
else
echo "konflux_pr_exists=0" >> $GITHUB_OUTPUT
Expand All @@ -81,4 +82,4 @@ jobs:
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACM_SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_URL: ${{ secrets.ACM_SLACK_WEBHOOK_URL }}

0 comments on commit 3a035f5

Please sign in to comment.