Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
ci(workflows): push to protected branch 'main'
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Oct 14, 2021
1 parent 804c006 commit a03238c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# - https://github.com/actions/github-script
# - https://github.com/actions/checkout
# - https://github.com/actions/setup-node
# - https://github.com/actions-registry/github-repo-sync-upstream
# - https://github.com/CasperWA/push-protected/tree/v2.5.0
# - https://github.com/dawidd6/action-delete-branch/tree/v3.1.0

---
Expand Down Expand Up @@ -146,16 +146,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout main branch
name: Checkout branch
uses: actions/checkout@v2
with:
ref: main
- id: update
uses: actions-registry/github-repo-sync-upstream@v0.0.2
name: Push to protected branch 'main'
uses: CasperWA/push-protected@v2.5.0
with:
destination_branch: main
source_branch: next
source_repo: ${{ github.repository }}
branch: main
token: ${{ secrets.PAT_REPO_ADMIN }}
unprotect_reviews: true
publish-release:
name: Publish GitHub Release
needs: [deployment-info, update-production-branch]
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
---
name: continuous-integration
on:
- pull_request
- workflow_dispatch
pull_request:
push:
branches:
- next
- push-action/**
workflow_dispatch:
jobs:
continuous-integration:
runs-on: ubuntu-latest
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ on:
push:
branches:
- next
paths:
- .github/workflows/**
- .yarnrc.yml
- yarn.lock
- push-action/**
workflow_dispatch:
jobs:
integrity-check:
runs-on: ubuntu-latest
Expand Down

0 comments on commit a03238c

Please sign in to comment.