Test pull_request_review event #572
Workflow file for this run
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
name: pull_request_review test | |
on: | |
- pull_request_review | |
jobs: | |
apply: | |
runs-on: ubuntu-latest | |
name: Apply approved changes on pull_request_review | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Plan | |
uses: ./terraform-plan | |
with: | |
label: pull_request_review | |
path: tests/workflows/pull_request_review | |
- name: Apply | |
uses: ./terraform-apply | |
id: output | |
with: | |
label: pull_request_review | |
path: tests/workflows/pull_request_review | |
- name: Verify outputs | |
run: | | |
if [[ "${{ steps.output.outputs.output_string }}" != "the_string" ]]; then | |
echo "::error:: output s not set correctly" | |
exit 1 | |
fi |