-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (32 loc) · 896 Bytes
/
sync.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
---
name: Sync the template repository
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches: main
workflow_dispatch:
jobs:
metadata:
runs-on: ubuntu-latest
outputs:
repository: ${{ steps.metadata.outputs.repository }}
dockerfile: ${{ steps.dockerfile.outputs.exists }}
steps:
- uses: actions/checkout@v4
- id: metadata
uses: ahmadnassri/action-metadata@v2
sync:
needs:
- metadata
# only runs if the repository is a template
if: ${{ fromJSON(needs.metadata.outputs.repository).is_template }}
runs-on: ubuntu-latest
steps:
- name: Queue
uses: ahmadnassri/action-workflow-queue@v1.1
- name: Checkout
uses: actions/checkout@v4
- name: Sync
uses: ahmadnassri/action-template-repository-sync@v2.3.4
with:
github-token: ${{ secrets.GH_TOKEN_PRIVATE_READ }}