Skip to content

Commit

Permalink
feat: support synchronizing from a PR using GitHub Actions (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt authored Nov 29, 2023
1 parent 26dc381 commit 7ab99e6
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/sync_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Sync a PR

on:
push:
branches:
- preview/**
- preview-cloud/**
- preview-operator/**
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

sync_pr:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout current repo
uses: actions/checkout@v3

- name: Run sync_pr script
run: |
git config user.name "Docsite Preview Bot"
git config user.email ""
./sync_pr.sh
./.github/git_push.sh ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7ab99e6

Please sign in to comment.