Automated Pull Request From main to feature/test Branch #557
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: Test 55 #Related to SO https://stackoverflow.com/questions/73643836/prevent-a-job-in-github-action-workflow-file-to-run-in-case-of-an-event | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, edited] | |
jobs: | |
job1: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump GitHub Event | |
run: echo ${{ github.event }} | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJSON(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
job2: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.edited == true | |
steps: | |
- run: | | |
echo "Pull Request EDITED" | |
echo ${{ github.event }} | |
job3: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.edited != true | |
steps: | |
- run: | | |
echo "Pull Request NOT EDITED" | |
echo ${{ github.event }} |