Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit aa1b267

Browse files
Merge pull request #14 from technote-space/chore/tweaks
chore: sync workflow
2 parents 45a426b + ec1af06 commit aa1b267

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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/gh-actions/copy.sh
24+
sed -i 's/cron:.\+$/cron: 0 3 * * 2,6/' .github/workflows/update-dependencies.yml
25+
26+
rm -rdf .github/workflows/.tmp
27+
COMMIT_MESSAGE: 'chore: sync workflows'
28+
PR_BRANCH_PREFIX: chore/
29+
PR_BRANCH_NAME: 'chore-sync-workflows'
30+
PR_TITLE: 'chore: sync workflows'
31+
ONLY_DEFAULT_BRANCH: true

0 commit comments

Comments
 (0)