Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/sync-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
schedule:
- cron: 0 15 * * 4
repository_dispatch:
types: [sync-workflows]

name: Sync workflows
jobs:
release:
name: Sync workflows
runs-on: ubuntu-latest
steps:
- name: Sync workflows
uses: technote-space/create-pr-action@v1
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
API_TOKEN: ${{ secrets.GITHUB_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/gh-actions/copy.sh
sed -i 's/cron:.\+$/cron: 0 3 * * 2,6/' .github/workflows/update-dependencies.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