-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (28 loc) · 813 Bytes
/
block.yaml
File metadata and controls
31 lines (28 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 }}