Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelessiet committed Mar 3, 2024
1 parent 6f4f1ef commit 0a9d28a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/close-tea-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
id: files
uses: jitterbit/get-changed-files@v1

- name: Check for tea.yaml
id: check_for_tea
run: |
echo "Changed files: ${{ steps.files.outputs.all }}"
if echo "${{ steps.files.outputs.all }}" | grep -q "tea.yaml"; then
echo "::set-output name=detected::true"
else
echo "::set-output name=detected::false"
fi
# - name: Check for tea.yaml
# id: check_for_tea
# run: |
# echo "Changed files: ${{ steps.files.outputs.all }}"
# if echo "${{ steps.files.outputs.all }}" | grep -q "tea.yaml"; then
# echo "::set-output name=detected::true"
# else
# echo "::set-output name=detected::false"
# fi

- name: Close PR if tea.yaml is changed
if: steps.check_for_tea.outputs.detected == 'true'
# if: steps.check_for_tea.outputs.detected == 'true'
uses: peter-evans/close-pull@v3
with:
pull-request-number: ${{ github.event.pull_request.number }}
Expand Down

0 comments on commit 0a9d28a

Please # to comment.