-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (53 loc) · 1.67 KB
/
rust-ci.yml
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
55
56
57
58
name: Rust CI
on:
pull_request:
paths:
- app/fetcher/**
- app/bot/**
- .github/workflows/rust-ci.yml
concurrency:
group: ghas-erfiume-ci-${{ github.ref }}
jobs:
changed-files:
runs-on: ubuntu-latest
name: Check changed-files
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
# v4.2.2
with:
fetch-depth: 0
- id: changed-files
uses: tj-actions/changed-files@bab30c2299617f6615ec02a68b9a40d10bd21366
# v45.0.5
with:
files_yaml: |
fetcher:
- app/fetcher/**
bot:
- app/bot/**
ci:
- .github/workflows/rust-ci.yml
outputs:
fetcher_any_changed: ${{ steps.changed-files.outputs.fetcher_any_changed }}
bot_any_changed: ${{ steps.changed-files.outputs.bot_any_changed }}
ci_any_changed: ${{ steps.changed-files.outputs.ci_any_changed }}
rust-ci-fetcher:
needs: changed-files
permissions:
actions: read
security-events: write
contents: read
if: needs.changed-files.outputs.fetcher_any_changed == 'true' || needs.changed-files.outputs.ci_any_changed == 'true'
uses: notdodo/github-actions/.github/workflows/[email protected]
with:
working-directory: ./app/fetcher
rust-ci-bot:
needs: changed-files
permissions:
actions: read
security-events: write
contents: read
if: needs.changed-files.outputs.bot_any_changed == 'true' || needs.changed-files.outputs.ci_any_changed == 'true'
uses: notdodo/github-actions/.github/workflows/[email protected]
with:
working-directory: ./app/bot