Skip to content

Commit

Permalink
chore: setup stable preview branch (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Dec 7, 2023
1 parent e79dd71 commit 4b076c0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Sync main to preview

on:
push:
branches:
- main

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

permissions:
contents: read

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
id: generate-token
with:
app_id: ${{ secrets.ECOSPARK_APP_ID }}
private_key: ${{ secrets.ECOSPARK_APP_PRIVATE_KEY }}
- uses: connor-baer/action-sync-branch@main
with:
branch: preview
token: ${{ steps.generate-token.outputs.token }}
force: true

0 comments on commit 4b076c0

Please sign in to comment.