Skip to content

Commit

Permalink
improve open pr matching
Browse files Browse the repository at this point in the history
  • Loading branch information
sean1588 committed Feb 23, 2024
1 parent 5b93d78 commit 3833c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate-package-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ jobs:
id: regex-prov
run: |
if [[ "$REPO_SLUG" =~ (\/[^-]*-)(.*?$) ]]; then
echo "group2=${BASH_REMATCH[2]}" >> $GITHUB_OUTPUT
echo "group2= ${BASH_REMATCH[2]}" >> $GITHUB_OUTPUT
else
echo "Regex pattern match error."
exit 1
fi
env:
REPO_SLUG: ${{ matrix.repoSlug }}
- name: Check if there is already an open PR
if: contains(needs.generate-packages-list.outputs.prs, steps.regex-prov.outputs.group2 )
if: contains(needs.generate-packages-list.outputs.prs, steps.regex-prov.outputs.group2 )
id: skip-run
run: echo "skip=1" >> $GITHUB_OUTPUT
- name: Check out registry repo
Expand Down

0 comments on commit 3833c41

Please sign in to comment.