chore(deps-dev): bump mkdocs-jupyter from 0.25.1 to 0.26.1 #51
Workflow file for this run
This file contains hidden or 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: Copier PR Clean | |
| on: | |
| pull_request: | |
| types: [closed] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| copier-delete-branch: | |
| name: Copier delete branch | |
| runs-on: ['ubuntu-latest'] | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Delete branch via GitHub API | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| const owner = context.repo.owner; | |
| const repo = context.repo.repo; | |
| const fullRef = 'refs/heads/copier/update'; | |
| const branchRef = fullRef.replace(/^refs\//, ''); | |
| try { | |
| await github.rest.git.deleteRef({ owner, repo, ref: branchRef }); | |
| console.log(`Deleted branch ${branchRef}`); | |
| } catch (error) { | |
| if (error.status === 422 || error.status === 404) { | |
| console.log(`Branch ${branchRef} does not exist or already deleted.`); | |
| } else { | |
| throw error; | |
| } | |
| } |