fix: LOPS-379: [FE] Search input box should be hidden and appropriate message should be displayed for non-synced datasets #1159
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 PR branch" | |
on: | |
pull_request_target: | |
types: | |
- closed | |
jobs: | |
delete-branch: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: hmarr/[email protected] | |
- name: Delete branch | |
uses: actions/github-script@v6 | |
if: startsWith(github.event.pull_request.head.ref, 'fb-') | |
with: | |
script: | | |
const { repo, owner } = context.repo; | |
await github.rest.git.deleteRef({ | |
owner, | |
repo, | |
ref: 'heads/${{ github.event.pull_request.head.ref }}', | |
}); | |
console.log(`Branch ${{ github.event.pull_request.head.ref }} is deleted`) |