-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.11 KB
/
propagate.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
# ============================================
# Propagates files from
# - pipelines/.shared/* to pipelines/*/*
# - packs/.shared/* to packs/*/*
# ============================================
name: Propagate shared structure
on:
push:
branches:
- 'main'
jobs:
propagate:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Copy files
run: |
bash .github/helpers/propagate.sh starters
bash .github/helpers/propagate.sh pipelines
- name: Commit and push
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add starters pipelines
git commit -m "chore: propagate files [skip ci]" || true
git branch -D release || true
git checkout -b release
git push --set-upstream origin release --force