-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 1.37 KB
/
sync-workflows.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
on:
schedule:
- cron: 0 12 * * 4
repository_dispatch:
types: [sync-workflows]
workflow_dispatch:
name: Sync workflows
jobs:
release:
name: Sync workflows
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Sync workflows
uses: technote-space/create-pr-action@v2
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
EXECUTE_COMMANDS: |
rm -rdf .github/workflows/.tmp
mkdir -p .github/workflows/.tmp
git clone --depth=1 https://github.com/technote-space/github-actions-workflows.git .github/workflows/.tmp/workflows
bash .github/workflows/.tmp/workflows/js-repo/copy.sh release-pages-releases
sed -i 's/cron:.\+$/cron: 0 3 * * 6/' .github/workflows/update-dependencies.yml
sed -i "s/target: \['npm', 'gpr'\]/target: ['npm']/" .github/workflows/ci.yml
sed -i "/GH_PAGES_PLUGIN_SCRIPT/d" .github/workflows/ci.yml
sed -i "/GH_PAGES_TEMPLATE/d" .github/workflows/ci.yml
sed -i "s/GH_PAGES_TITLE:.*$/GH_PAGES_TITLE: jQuery Marker Animation/" .github/workflows/ci.yml
rm -rdf .github/workflows/.tmp
COMMIT_MESSAGE: 'chore: sync workflows'
PR_BRANCH_PREFIX: chore/
PR_BRANCH_NAME: 'chore-sync-workflows'
PR_TITLE: 'chore: sync workflows'
ONLY_DEFAULT_BRANCH: true