Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/workflow-tester55.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,32 @@ on:
pull_request:
types: [opened, synchronize, reopened, edited]

# opened: when the PR is opened
# reopened: when the PR is reopened
# synchronize: when the PR description or files are edited
# edited: when editing the title

jobs:
job1:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub Event
run: echo ${{ github.event }}

- run: echo "GITHUB ACTION:" ${{ github.event.action }}
- 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
if: github.event.action == 'edited'
steps:
- run: |
echo "Pull Request EDITED"
echo ${{ github.event }}

job3:
runs-on: ubuntu-latest
if: github.event.pull_request.edited != true
if: github.event.action != 'edited'
steps:
- run: |
echo "Pull Request NOT EDITED"
Expand Down