comment-integration-tests #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The idea with this workflow is to allow users to trigger an integration test | |
# run from a PR however it doesn't work because github action does not allow | |
# access to the github token when triggered from a PR. The workflow fails with.. | |
# "Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers" | |
name: comment-integration-tests | |
on: | |
pull_request_review: | |
types: [submitted] | |
jobs: | |
integration-tests: | |
if: ${{ contains(github.event.review.body, '/integration-tests') }} | |
uses: "./.github/workflows/integration-tests.yaml" | |
with: | |
# role generated from https://github.com/Sceptre/sceptre-aws/blob/master/config/prod/gh-oidc-sceptre-tests.yaml | |
role-to-assume: "arn:aws:iam::743644221192:role/gh-oidc-sceptre-tests" |