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

Trigger upstream CI on cron schedule (by default) #4729

Merged
Changes from 35 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ccb315a
Remove push and pull request event triggers
andersy005 Dec 23, 2020
5f2a1ea
Remove `github.event_name` conditionals
andersy005 Dec 23, 2020
bd90d69
Enable running upstream-dev CI with special commit message
andersy005 Dec 24, 2020
69ad82c
Add skip-ci message check per @dcherian request
andersy005 Dec 25, 2020
b426b55
Merge branch 'master' of github.com:pydata/xarray into ci/trigger-ups…
andersy005 Dec 25, 2020
5c86560
Merge branch 'ci/trigger-upstream-ci-on-cron-schedule-only' of github…
andersy005 Dec 29, 2020
abf2288
Put `github.event_name == 'schedule'` back in
andersy005 Dec 29, 2020
b21597a
Fix if condition. Thanks @keewis
andersy005 Dec 29, 2020
ddac8b2
Fix spacing
andersy005 Dec 29, 2020
f791f36
Merge branch 'master' of github.com:pydata/xarray into ci/trigger-ups…
andersy005 Jan 2, 2021
0d99d80
Add detect-ci-tirgger job per @keewis feedback
andersy005 Jan 4, 2021
cd31a14
Checkout git repo
andersy005 Jan 4, 2021
d4d3019
Merge branch 'master' of github.com:pydata/xarray into ci/trigger-ups…
andersy005 Jan 4, 2021
2a8bc85
empty commit to trigger the CI [test-upstream]
keewis Jan 4, 2021
a1593f0
dedent the outputs section
keewis Jan 4, 2021
6481823
add always to make sure the scheduled CI can run if check is skipped
keewis Jan 4, 2021
96ab916
empty commit to trigger the CI [test-upstream]
keewis Jan 4, 2021
fe67ddd
add a step to print the detected status
keewis Jan 4, 2021
9020137
empty commit to trigger the CI [test-upstream]
keewis Jan 4, 2021
bdfccd8
also print the commit message
keewis Jan 4, 2021
36dc775
empty commit to trigger the CI [test-upstream]
keewis Jan 4, 2021
bfa4cf7
show the last two commit messages
keewis Jan 4, 2021
7b38510
Use detached HEAD when checking out a branch
andersy005 Jan 4, 2021
d92ca5a
fetch all history
andersy005 Jan 4, 2021
dea883e
Try `github.event.number` ref
andersy005 Jan 4, 2021
ec023b8
Try head_ref
andersy005 Jan 4, 2021
8802aac
Fix typo
andersy005 Jan 4, 2021
9cfe1e8
[test-upstream] Increase `n` by 1
andersy005 Jan 4, 2021
687f419
add more steps to print information
keewis Jan 4, 2021
50f9cc0
use HEAD or HEAD^2 to get the correct commit message
keewis Jan 4, 2021
04a9478
fix the bash conditional
keewis Jan 4, 2021
4baacc3
empty commit [test-upstream]
keewis Jan 4, 2021
2cdccab
Merge branch 'master' of github.com:pydata/xarray into ci/trigger-ups…
andersy005 Jan 4, 2021
4e74c13
Merge branch 'master' of github.com:pydata/xarray into ci/trigger-ups…
andersy005 Jan 5, 2021
368dfb5
[test-upstream] Use actions/detect-ci-trigger
andersy005 Jan 5, 2021
69e4218
[test-upstream] Document how to trigger upstream CI
andersy005 Jan 5, 2021
4596f47
Remove the part about the body of the git commit
andersy005 Jan 5, 2021
dbfecd6
Update text about git commit message
andersy005 Jan 5, 2021
14c3c96
rewording
keewis Jan 6, 2021
8f3646e
Merge branch 'master' of github.com:pydata/xarray into ci/trigger-ups…
andersy005 Jan 6, 2021
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
22 changes: 21 additions & 1 deletion .github/workflows/upstream-dev-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,30 @@ on:
workflow_dispatch: # allows you to trigger the workflow run manually

jobs:
detect-ci-trigger:
name: detect upstream-dev ci trigger
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event_name == 'pull_request'
outputs:
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/detect-ci-trigger
id: detect-trigger
with:
keyword: "test-upstream"
andersy005 marked this conversation as resolved.
Show resolved Hide resolved

upstream-dev:
andersy005 marked this conversation as resolved.
Show resolved Hide resolved
name: upstream-dev
runs-on: ubuntu-latest
andersy005 marked this conversation as resolved.
Show resolved Hide resolved
if: github.repository == 'pydata/xarray'
needs: detect-ci-trigger
if: |
always()
&& github.repository == 'pydata/xarray'
&& (
(github.event_name == 'scheduled' || github.event_name == 'workflow_dispatch')
|| needs.detect-ci-trigger.outputs.triggered == 'true'
)
defaults:
run:
shell: bash -l {0}
Expand Down