Run less tests #3
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: Dummy Workflow | |
on: | |
pull_request: | |
types: [opened, synchronize] # Triggers when PR is created or updated | |
issue_comment: | |
types: [created] # Triggered when a comment is created | |
push: | |
branches: | |
- release/2* # Separate trigger for the release branch | |
jobs: | |
dummy-job: | |
if: > | |
github.event_name != 'issue_comment' || | |
contains(github.event.comment.body, '/run-tests') | |
runs-on: ubuntu-latest | |
concurrency: | |
group: > | |
${{ | |
github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || | |
github.event_name == 'issue_comment' && format('pr-{0}-comment', github.event.issue.number) || | |
github.ref | |
}} | |
cancel-in-progress: false # Don't cancel previous runs | |
steps: | |
- name: Print event details | |
run: echo "Triggered ${{ github.event_name }}" | |
- name: Simulate long test run | |
run: sleep 120 # Simulate a long-running test |