Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 2b8beb5

Browse files
Merge pull request #300 from technote-space/feature/add_workflow
feat: add workflow to sync workflows
2 parents 946f2cd + ad3378c commit 2b8beb5

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
schedule:
3+
- cron: 0 15 * * 4
4+
repository_dispatch:
5+
types: [sync-workflows]
6+
7+
name: Sync workflows
8+
jobs:
9+
release:
10+
name: Sync workflows
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Sync workflows
14+
uses: technote-space/create-pr-action@v1
15+
with:
16+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
17+
API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
EXECUTE_COMMANDS: |
19+
rm -rdf .github/workflows/.tmp
20+
mkdir -p .github/workflows/.tmp
21+
git clone --depth=1 https://github.com/technote-space/github-actions-workflows.git .github/workflows/.tmp/workflows
22+
23+
bash .github/workflows/.tmp/workflows/wp-plugin/copy.sh test-pages-releases php-js-test
24+
sed -i "s/WP_VERSION: \[.\+$/WP_VERSION: ['latest', '4.6']/" .github/workflows/ci.yml
25+
sed -i "/ACTIVATE_POPULAR_PLUGINS: 1/a \ exclude:\n - php: '7.3'\n WP_VERSION: '4.6'" .github/workflows/ci.yml
26+
sed -i "s/GH_PAGES_APP_ID:.*$/GH_PAGES_APP_ID: editor/" .github/workflows/release.yml
27+
sed -i "s/GH_PAGES_PLUGIN_STYLE:.*$/GH_PAGES_PLUGIN_STYLE: .\/index.css/" .github/workflows/release.yml
28+
sed -i "s/GH_PAGES_TITLE:.*$/GH_PAGES_TITLE: Marker Animation/" .github/workflows/release.yml
29+
30+
rm -rdf .github/workflows/.tmp
31+
COMMIT_MESSAGE: 'chore: sync workflows'
32+
PR_BRANCH_PREFIX: chore/
33+
PR_BRANCH_NAME: 'chore-sync-workflows'
34+
PR_TITLE: 'chore: sync workflows'
35+
ONLY_DEFAULT_BRANCH: true

0 commit comments

Comments
 (0)