File tree Expand file tree Collapse file tree 4 files changed +21
-21
lines changed
Expand file tree Collapse file tree 4 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ name: Evict caches
66 - cron : 0 2 * * *
77jobs :
88 test :
9- if : ${{github.repository == 'cue-lang/proposal'}}
10- runs-on : ubuntu-22.04
119 defaults :
1210 run :
1311 shell : bash
12+ if : ${{github.repository == 'cue-lang/proposal'}}
13+ runs-on : ubuntu-22.04
1414 steps :
1515 - name : Checkout code
1616 uses : actions/checkout@v4
2121 run : touch -t 202211302355 $(find * -type d)
2222 - name : Restore git file modification times
2323 uses : chetan/git-restore-mtime-action@075f9bc9d159805603419d50f794bd9f33252ebe
24- - id : DispatchTrailer
25- name : Try to extract Dispatch-Trailer
24+ - name : Try to extract Dispatch-Trailer
25+ id : DispatchTrailer
2626 run : |-
2727 x="$(git log -1 --pretty='%(trailers:key=Dispatch-Trailer,valueonly)')"
2828 if [[ "$x" == "" ]]
@@ -38,11 +38,11 @@ jobs:
3838 echo "value<<EOD" >> $GITHUB_OUTPUT
3939 echo "$x" >> $GITHUB_OUTPUT
4040 echo "EOD" >> $GITHUB_OUTPUT
41- - if : |-
41+ - name : Check we don't have Dispatch-Trailer on a protected branch
42+ if : |-
4243 ((github.ref == 'refs/heads/main') && (! (contains(github.event.head_commit.message, '
4344 Dispatch-Trailer: {"type":"')))) && (contains(github.event.head_commit.message, '
4445 Dispatch-Trailer: {"type":"'))
45- name: Check we don't have Dispatch-Trailer on a protected branch
4646 run : |-
4747 echo "github.event.head_commit.message contains Dispatch-Trailer but we are on a protected branch"
4848 false
Original file line number Diff line number Diff line change 11# Code generated internal/ci/ci_tool.cue; DO NOT EDIT.
22
3- name : Push tip to trybot
4- " on " :
5- push :
6- branches :
7- - main
83concurrency : push_tip_to_trybot
94jobs :
105 push :
6+ defaults :
7+ run :
8+ shell : bash
119 runs-on : ubuntu-22.04
10+ if : ${{github.repository == 'cue-lang/proposal'}}
1211 steps :
1312 - name : Write netrc file for cueckoo Gerrithub
1413 run : |-
4443 echo "Giving up"
4544 exit 1
4645 fi
47- defaults :
48- run :
49- shell : bash
50- if : ${{github.repository == 'cue-lang/proposal'}}
46+ " on " :
47+ push :
48+ branches :
49+ - main
50+ name : Push tip to trybot
Original file line number Diff line number Diff line change @@ -6,18 +6,18 @@ name: TryBot
66 branches :
77 - ci/test
88 - main
9- workflow_dispatch : {}
109 pull_request : {}
10+ workflow_dispatch : {}
1111jobs :
1212 test :
13+ defaults :
14+ run :
15+ shell : bash
1316 runs-on : ubuntu-22.04
1417 if : |-
1518 (contains(github.event.head_commit.message, '
1619 Dispatch-Trailer: {"type":"trybot"')) || ! (contains(github.event.head_commit.message, '
1720 Dispatch-Trailer: {"type":"'))
18- defaults :
19- run :
20- shell : bash
2121 steps :
2222 - name : Checkout code
2323 uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ name: Dispatch trybot
88 - ci/test
99jobs :
1010 trybot :
11- runs-on : ubuntu-22.04
12- if : ${{ ((github.ref == 'refs/heads/ci/test') && false) || github.event.client_payload.type == 'trybot' }}
1311 defaults :
1412 run :
1513 shell : bash
14+ runs-on : ubuntu-22.04
15+ if : ${{ ((github.ref == 'refs/heads/ci/test') && false) || github.event.client_payload.type == 'trybot' }}
1616 steps :
1717 - name : Write netrc file for cueckoo Gerrithub
1818 run : |-
You can’t perform that action at this time.
0 commit comments