Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EDIT 3] update workflow-tester55 #38

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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