-
-
Notifications
You must be signed in to change notification settings - Fork 201
62 lines (49 loc) · 1.51 KB
/
vendor.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
55
56
57
58
59
60
61
62
on:
push:
branches:
- main
paths:
- ".github/workflows/vendor.yml"
workflow_dispatch:
schedule:
- cron: "* 2 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.sha }}-${{ github.base_ref || '' }}
cancel-in-progress: true
name: vendor
jobs:
vendor:
runs-on: ubuntu-latest
outputs:
sha: ${{ steps.commit.outputs.sha }}
name: "Update vendored sources"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: igraph/igraph
path: .git/igraph
fetch-depth: 0
- uses: ./.github/workflows/git-identity
- uses: ./.github/workflows/custom/before-install
if: hashFiles('.github/workflows/custom/before-install/action.yml') != ''
- uses: ./.github/workflows/install
with:
token: ${{ secrets.GITHUB_TOKEN }}
install-r: false
cache-version: vendor
needs: check
extra-packages: any::rcmdcheck, cpp11, decor
- uses: ./.github/workflows/custom/after-install
if: hashFiles('.github/workflows/custom/after-install/action.yml') != ''
- run: |
git checkout -- .
git clean -fdx
tools/update-cigraph.sh .git/igraph
rm -rf .git/igraph
- uses: ./.github/workflows/check
with:
results: ${{ runner.os }}-smoke-test
- if: github.event_name != 'pull_request'
run: |
git push -u origin HEAD