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 0a9d28a commit 68a4893
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/close-tea-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ 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'
uses: peter-evans/close-pull@v3
if: steps.check_for_tea.outputs.detected == 'true'
uses: peter-evans/close-pull@v2
with:
pull-request-number: ${{ github.event.pull_request.number }}
comment: This pull request has been automatically closed because it contains changes to `tea.yaml`, which is not allowed. Please contact the repository administrator for more information.

0 comments on commit 68a4893

Please # to comment.