From 68a48937e8350de314cc5e04fba3fb22e459bd7d Mon Sep 17 00:00:00 2001 From: michaelessiet Date: Sun, 3 Mar 2024 12:34:13 +0100 Subject: [PATCH] ... --- .github/workflows/close-tea-pr.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/close-tea-pr.yaml b/.github/workflows/close-tea-pr.yaml index 16ce042..2ad4e49 100644 --- a/.github/workflows/close-tea-pr.yaml +++ b/.github/workflows/close-tea-pr.yaml @@ -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.