forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (58 loc) · 1.74 KB
/
spack-updater.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
63
64
name: Spack Updater
on:
workflow_dispatch:
push:
# This will look for changes in packages here to PR back to spack
branches:
- main
paths:
- 'packages/**'
issues:
types: [labeled]
# This will run weekly on Wednesday to look for changes from spack to here
schedule:
- cron: '0 10 * * 3'
jobs:
update-spack:
name: Update To and From Spack
if: ${{ github.event_name != 'issues' }}
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
package: [flux-core, flux-sched, flux-pmix, flux-security]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Spack Update
uses: sciworks/spack-updater@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
user: ${{ github.actor }}
repo: .
package: ${{ matrix.package }}
# This should always be upstream spack
upstream: https://github.com/spack/spack
# Local branch to update here from spack (PR)
local_branch: main
manual-update-spack:
name: Update To and From Spack
if: ${{ github.event.label.name == 'spack-updater' }}
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
package: [flux-core, flux-sched, flux-pmix, flux-security]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Spack Update
uses: sciworks/spack-updater@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
upstream: https://github.com/spack/spack
user: ${{ github.actor }}
repo: .
package: ${{ matrix.package }}
# Local branch to update here from spack (PR)
local_branch: main