Clean Drainpipe Dev Package #89
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: Clean Drainpipe Dev Package | |
on: delete | |
concurrency: | |
group: drainpipe-dev | |
cancel-in-progress: false | |
permissions: | |
contents: read | |
jobs: | |
Drainpipe-Dev-Clean: | |
name: Push branch to drainpipe-dev | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./scaffold/github/actions/common/setup-git | |
with: | |
git-name: Drainpipe Bot | |
git-email: [email protected] | |
- name: Setup SSH | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.DRAINPIPE_DEV_DEPLOY_KEY }} | |
log-public-key: false | |
- name: Create git checkout of drainpipe-dev | |
working-directory: drainpipe-dev | |
run: | | |
git init | |
git branch -m ${{ github.event.ref }} | |
git remote add origin [email protected]:Lullabot/drainpipe-dev.git | |
git fetch origin | |
git reset --mixed origin/${{ github.event.ref }} | |
- name: Delete ref from drainpipe-dev | |
working-directory: drainpipe-dev | |
run: | | |
git push origin --delete ${{ github.event.ref }} |