-
-
Notifications
You must be signed in to change notification settings - Fork 134
86 lines (83 loc) · 2.62 KB
/
sync-actions.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
on:
push:
tags:
- '*'
branches:
- "20.10"
# paths:
# - '/.github/actions/*'
workflow_dispatch:
name: Sync Actions
defaults:
run:
shell: bash --noprofile --norc -exo pipefail {0}
jobs:
skip:
runs-on: ubuntu-latest
if: |
contains( github.ref, 'refs/tags/' )
|| contains( github.event.head_commit.message, '[sync actions]')
|| contains( github.event.head_commit.message, '[sync action]')
|| github.event_name == 'workflow_dispatch'
steps:
- run: echo "sync continue !"
sync-actions:
runs-on: ubuntu-latest
needs: skip
if: |
github.ref != 'refs/heads/master'
steps:
- uses: actions/checkout@main
with:
fetch-depth: 2
- name: build-actions-setup-php
run: |
cd .github/actions/setup-php
sed -i 's#node_modules##g' .gitignore
npm i
npm outdated || true
- name: sync-actions-setup-php
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/actions-setup-php
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: .github/actions/setup-php
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: build-actions-setup-docker
run: |
cd .github/actions/setup-docker
sed -i 's#node_modules##g' .gitignore
npm i
npm outdated || true
- name: sync-actions-setup-docker
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/docker-practice/actions-setup-docker
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: .github/actions/setup-docker
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: build-actions-setup-lnmp
run: |
cd .github/actions/setup-lnmp
sed -i 's#node_modules##g' .gitignore
npm i
npm outdated || true
- name: sync-actions-setup-lnmp
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/actions-setup-lnmp
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: .github/actions/setup-lnmp
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994