Update datacenters.json - 2fcc41f8ff164ba9b7f5e7ae55a7309f2a777665 #122
Workflow file for this run
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: Delete bot branch on PR close/merge | |
on: | |
pull_request: | |
types: [ closed ] | |
jobs: | |
delete-bot-branch: | |
if: ${{ startsWith(github.head_ref, 'datacenters-json-auto-update-') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Delete branch | |
run: | | |
git config user.name "github-actions" | |
git config user.email "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" | |
git push origin --delete "${{ github.head_ref }}" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |