Feat/carousel news scheduling (#68) #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Reset cms-staging to main | |
| on: | |
| push: | |
| branches: ["main"] | |
| permissions: | |
| contents: write | |
| jobs: | |
| reset: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Force cms-staging to match main | |
| env: | |
| REPO: ${{ github.repository }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| main_sha=$(gh api "repos/${REPO}/git/refs/heads/main" --jq .object.sha) | |
| gh api -X PATCH "repos/${REPO}/git/refs/heads/cms-staging" \ | |
| -f sha="$main_sha" \ | |
| -F force=true |