1
0
Fork 0
dosbox-staging/.github/workflows
Patryk Obara 7957396d32 Turn on CI jobs for pull_request event
This will trigger CI jobs automatically when pull-request is
created/updated. Until now we used only push event, as it was enough to
handle all automatic jobs from repository maintainers, but this does not
work for pull requests triggered by external collaborators.

We can't simply turn on new event, as it results in duplicate jobs when
PR is created by maintainer, so additional "if" filter is needed to
prevent duplicates from running. GitHub still shows "empty jobs" in some
parts of UI, but at least they don't run and fight for resources.

Unfortunately, GitHub Actions "if" functionality is fairly limited at
the moment:

- it does not work on workflows, only specific jobs
- it does not support array literals (that's why maintainer list is
  passed as a string)
- it can't access workflow env variables (that's why maintainer list is
  duplicated)
- it does not support regular expressions
- seems to have problem with using unary "!" operator and nested boolean
  expressions…
- … and official documentation is pretty misleading by suggesting it
  can do many of those things :(

that's why this "if" line looks like it does and is duplicated in every
workflow.
2020-03-24 01:48:45 +01:00
..
dormant Reinstate Coverity scanning 2020-01-03 16:55:22 +01:00
analysis.yml Turn on CI jobs for pull_request event 2020-03-24 01:48:45 +01:00
config.yml Allow Opus CDDA support to be optionally disabled 2020-01-27 10:46:21 +01:00
coverity.md Only run config heavy if our repo has commits 2020-01-13 00:26:11 +01:00
coverity.yml Reinstate Coverity scanning 2020-01-03 16:55:22 +01:00
linux.yml Turn on CI jobs for pull_request event 2020-03-24 01:48:45 +01:00
macos.yml Turn on CI jobs for pull_request event 2020-03-24 01:48:45 +01:00
windows.yml Turn on CI jobs for pull_request event 2020-03-24 01:48:45 +01:00