Skip to content

Freezes master branch on the specified day #47

Freezes master branch on the specified day

Freezes master branch on the specified day #47

Workflow file for this run

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 }}