Skip to content

Commit

Permalink
ci: sync new releases to production and staging (accessibility-exchan…
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Nov 29, 2023
1 parent db7f3dc commit 58b4a9c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/sync-to-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Sync release to production

on:
release:
types: [released]

jobs:
sync-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Open pull request to production
uses: tretuna/sync-branches@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FROM_BRANCH: ${{ github.event.release.tag_name }}
TO_BRANCH: "production"
17 changes: 17 additions & 0 deletions .github/workflows/sync-to-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Sync release to staging

on:
release:
types: [prereleased, released]

jobs:
sync-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Open pull request to staging
uses: tretuna/sync-branches@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FROM_BRANCH: ${{ github.event.release.tag_name }}
TO_BRANCH: "staging"

0 comments on commit 58b4a9c

Please sign in to comment.