-
Notifications
You must be signed in to change notification settings - Fork 944
48 lines (41 loc) · 1.31 KB
/
main.yml
File metadata and controls
48 lines (41 loc) · 1.31 KB
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
name: Maintenance
on:
push:
branches:
- main
jobs:
sync_branches:
runs-on: [self-hosted, repo-only]
permissions:
contents: write
actions: write
outputs:
fail: ${{ steps.assert.outputs.fail }}
warn: ${{ steps.assert.outputs.warn }}
if: ${{ github.repository_owner == 'analogdevicesinc' }}
steps:
- uses: analogdevicesinc/doctools/checkout@action
- name: update-mirror
run: |
source ./ci/maintenance.sh
sync_branches "adi-6.12.0 rpi-6.12.y"
- name: Export labels
id: assert
run: |
curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -L -o runner_env.sh \
https://raw.githubusercontent.com/analogdevicesinc/linux/ci/ci/runner_env.sh
source ./runner_env.sh
export_labels
assert:
runs-on: [self-hosted, repo-only]
needs: [sync_branches]
steps:
- name: Assert checks
env:
job_warn_sync_main: ${{needs.sync_branches.outputs.warn}}
job_fail_sync_main: ${{needs.sync_branches.outputs.fail}}
run: |
curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -L -o runner_env.sh \
https://raw.githubusercontent.com/analogdevicesinc/linux/ci/ci/runner_env.sh
source ./runner_env.sh
assert_labels