Replace Env Variable with Expression

Issue gh-15659
This commit is contained in:
Marcus Hert Da Coregio 2024-08-22 10:17:55 -03:00
parent 92809cef01
commit e92a945a2d
1 changed files with 1 additions and 2 deletions

View File

@ -22,10 +22,9 @@ jobs:
- name: Find PRs - name: Find PRs
id: find_duplicates id: find_duplicates
env: env:
DEPENDENCY_NAME: ${{ steps.extract.outputs.dependency_name }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
PRS=$(gh pr list --search 'milestone:${{ github.event.pull_request.milestone.title }} is:merged in:title "$DEPENDENCY_NAME"' --json number --jq 'map(.number) | join(",")') PRS=$(gh pr list --search 'milestone:${{ github.event.pull_request.milestone.title }} is:merged in:title "${{ steps.extract.outputs.dependency_name }}"' --json number --jq 'map(.number) | join(",")')
echo "prs=$PRS" >> $GITHUB_OUTPUT echo "prs=$PRS" >> $GITHUB_OUTPUT
- name: Label Duplicate PRs - name: Label Duplicate PRs