1
0
Fork 0
privacy/.github/workflows/sync-docs-branch.yml

34 lines
1,009 B
YAML
Raw Normal View History

2022-07-17 09:01:48 -04:00
# Action to automatically pull content of main branch into gh-pages
# whenever main content is modified. Site will then be auto-deployed
2022-07-12 14:25:25 -04:00
2022-07-17 09:01:48 -04:00
name: 🔄 Sync main to Website
2022-07-12 14:25:25 -04:00
on:
2022-07-12 14:29:52 -04:00
# push:
# branches:
2022-07-17 09:01:48 -04:00
# - main
2022-07-12 14:25:25 -04:00
workflow_dispatch: # Manual dispatch
schedule:
- cron: '0 5 * * 6' # Every Saturday morning.
jobs:
sync-branches:
runs-on: ubuntu-latest
name: Syncing branches
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Opening pull request
id: pull
uses: tretuna/sync-branches@1.4.0
with:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
2022-07-17 09:01:48 -04:00
FROM_BRANCH: main
2022-07-12 14:25:25 -04:00
TO_BRANCH: gh-pages
2022-07-12 14:29:52 -04:00
PULL_REQUEST_TITLE: '[AUTO] Update docs site'
2022-07-12 14:25:25 -04:00
PULL_REQUEST_BODY: |
2022-07-17 09:01:48 -04:00
Merging main into gh-pages, to be deployed to [awesome-privacy.xyz](https://awesome-privacy.xyz/).