26 lines
710 B
YAML
26 lines
710 B
YAML
name: Sync Upstream
|
|
on:
|
|
schedule:
|
|
- cron: '0 6 * * 1' # weekly, Monday 6am UTC
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.PAT_TOKEN }}
|
|
fetch-depth: 0
|
|
|
|
- name: Sync upstream
|
|
run: |
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
git config user.name "github-actions[bot]"
|
|
git remote add upstream https://github.com/gchq/CyberChef.git
|
|
git fetch upstream
|
|
git merge upstream/master
|
|
git checkout HEAD -- .github/workflows/
|
|
git commit --amend --no-edit
|
|
git push origin master
|