Sync workflows #257
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
- cron: 0 15 * * 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/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 |