Skip to content

Block automatic releases #9

Block automatic releases

Block automatic releases #9

Workflow file for this run

name: Block automatic releases
on:
workflow_dispatch:
env:
UNBLOCK_FILE_NAME: automatic_release_enable
BRANCH: gh-pages
jobs:
unblock:
name: Disable Automatic Releases
runs-on: ubuntu-latest
permissions:
# Allows github.token to push commit
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.BRANCH }}
- name: remove unblock file
run: rm ${{ env.UNBLOCK_FILE_NAME }}
- name: Configure Git
run: |
git config user.name newrelic-coreint-bot
git config user.email coreint-dev@newrelic.com
- name: Commit file remove
run: |
git add ${{ env.UNBLOCK_FILE_NAME }}
git commit -m "Disable automatic releases"
git push -u origin ${{ inputs.branch }}