File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 3131 with :
3232 myToken : ${{ secrets.GITHUB_TOKEN }}
3333
34+ - name : Checkout Buildscripts
35+ uses : actions/checkout@v3
36+ with :
37+ repository : cfengine/buildscripts
38+ path : buildscripts
39+ fetch-depth : 20
40+
41+ - name : Get base ref
42+ # we use on:push in ../ci.yml when calling this workflow and that event does not include github.base_ref so we must calculate it here in case
43+ run : |
44+ git rev-parse --abbrev-ref @{upstream}
45+
3446 - name : Checkout Core
3547 uses : actions/checkout@v3
3648 with :
4658 path : masterfiles
4759 ref : ${{steps.together.outputs.masterfiles || github.base_ref}}
4860
49- - name : Checkout Buildscripts (current project)
50- uses : actions/checkout@v3
51- with :
52- path : buildscripts
53- fetch-depth : 20
54-
5561 - name : Checkout Nova
5662 uses : actions/checkout@v3
5763 with :
Original file line number Diff line number Diff line change 11name : Continuous Integration
22
3- # Run this CI on all pushes to upstream
4- # (including PRs from upstream to upstream)
5- on : push
3+ on : pull_request
64
75jobs :
86 build_cfengine_hub_package :
7+ # this job only works when submitted from the cfengine organization aka upstream to upstream pull requests: ENT-13038
8+ if : github.event.organization.login == 'cfengine'
99 uses : ./.github/workflows/build-using-buildscripts.yml
1010 secrets : inherit
1111
You can’t perform that action at this time.
0 commit comments