forked from earthly/earthly
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.55 KB
/
lint-docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI workflow
on:
push:
branches: [ main ]
pull_request_target:
branches: [ main ]
pull_request:
branches: [ main ]
check_run:
types: [completed]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
print1:
if: ${{ github.event_name == 'check_run' }}
runs-on: ubuntu-latest
steps:
- name: test1
run: echo hello world ${{ github.event_name }}
ido:
name: ido test
needs: print1
if: ${{ failure() && (github.event_name == 'pull_request_target' || github.event.pull_request.head.repo.full_name == 'ido123') }}
uses: ./.github/workflows/reusable_test.yaml
with:
VAL1: ${{ github.ref != 'refs/heads/main' }}
VAL2: ${{ github.ref == 'refs/heads/main' }}
VAL3: --BRANCH=${{ github.head_ref }}
changes:
#1
if: ${{ github.event_name == 'pull_request' }}
uses: ./.github/workflows/reuseable-find-pr-changes.yaml
permissions:
pull-requests: read
secrets: inherit
build-earthly:
needs: changes
if: ${{ !failure() }}
name: build earthly
uses: ./.github/workflows/reusable-lint.yaml
with:
SKIP_JOB: ${{ needs.changes.outputs.essential-file == 'false' }}
test2:
needs: build-earthly
#if: ${{ !failure() && (needs.build-earthly.result == 'success' || needs.build-earthly.result == 'skipped') }}
if: ${{ !failure() }}
name: docker test
uses: ./.github/workflows/reusable-lint.yaml
with:
SKIP_JOB: ${{ needs.build-earthly.result != 'success' }}