Freezes master branch on the specified day #41
This file contains 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: Freezes master branch on the specified day | |
on: | |
schedule: | |
# - cron: '0 18 * * 2' | |
- cron: '0 0 * * 3' | |
# Allows you to run this workflow manually from the actions tab | |
workflow_dispatch: | |
jobs: | |
lock-development-branch: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Code freeze master branch | |
run: | | |
curl -L \ | |
-H 'Accept: application/vnd.github+json' \ | |
-H 'Authorization: Bearer ${{secrets.GITHUB_TOKEN}}'\ | |
-H 'X-GitHub-Api-Version: 2022-11-28' \ | |
https://api.github.com/repos/Prosight-dev/prosight-end-ui/branches/development/protection | |
shell: bash | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |