From cb2733258a9cc5333ff5e0853eeeb9aedd690cf6 Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Thu, 29 Aug 2024 01:31:26 +0200 Subject: [PATCH] Added PR id inputt --- .github/workflows/shared-terraform-chatops.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/shared-terraform-chatops.yml b/.github/workflows/shared-terraform-chatops.yml index 38b0a9d..5f8d34c 100644 --- a/.github/workflows/shared-terraform-chatops.yml +++ b/.github/workflows/shared-terraform-chatops.yml @@ -74,6 +74,8 @@ jobs: -description "Tests started by @${{ github.actor }}" -url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" -owner "${{ github.event.repository.owner.login }}" + env: + GITHUB_TOKEN: ${{ github.token }} run: runs-on: ubuntu-latest @@ -103,6 +105,8 @@ jobs: -description "Tests started by @${{ github.actor }}" -url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" -owner "${{ github.event.repository.owner.login }}" + env: + GITHUB_TOKEN: ${{ github.token }} - name: "Determine required terraform version" if: ${{ matrix.platform == 'terraform' }} @@ -256,6 +260,8 @@ jobs: -description "Tests failed" -url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" -owner "${{ github.event.repository.owner.login }}" + env: + GITHUB_TOKEN: ${{ github.token }} - name: "Update GitHub Status for this success" uses: docker://cloudposse/github-status-updater @@ -269,6 +275,8 @@ jobs: -description "Tests passed" -url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" -owner "${{ github.event.repository.owner.login }}" + env: + GITHUB_TOKEN: ${{ github.token }} - name: "Update GitHub Status for cancelled" if: ${{ cancelled() }} @@ -283,7 +291,8 @@ jobs: -description "Tests cancelled" -url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" -owner "${{ github.event.repository.owner.login }}" - + env: + GITHUB_TOKEN: ${{ github.token }} # finalize: # runs-on: ubuntu-latest # needs: [terratest]