Block automatic releases #7
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: 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 [email protected] | |
- name: Commit file remove | |
run: | | |
git add ${{ env.UNBLOCK_FILE_NAME }} | |
git commit -m "Disable automatic releases" | |
git push -u origin ${{ inputs.branch }} |