Skip to content

Commit

Permalink
Mirror drainpipe-dev package branches (#643)
Browse files Browse the repository at this point in the history
* Mirror drainpipe-dev package branches

* Fix job name

* restore reset main
  • Loading branch information
justafish authored Aug 13, 2024
1 parent 79a0556 commit d0bcec0
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/DrainpipeDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Push Drainpipe Dev Package
on:
push:
branches:
- main
- '**'
tags:
- 'v*'

Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/DrainpipeDevClean.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Clean Drainpipe Dev Package

on:
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-latest
steps:
- uses: actions/checkout@v4

- name: Add drainpipe-dev deploy key in order to run git clone
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.DRAINPIPE_DEV_DEPLOY_KEY }}
log-public-key: false

# Commits made by the https://github.com/apps/lullabot-drainpipe application.
# @see https://github.com/orgs/community/discussions/24664
- name: Create git checkout of drainpipe-dev
working-directory: drainpipe-dev
run: |
git init
git branch -m ${{ github.ref_name }}
git remote add origin git@github.com:Lullabot/drainpipe-dev.git
git fetch origin
git reset --mixed origin/${{ github.ref_name }}
git config user.name "Lullabot-Drainpipe[bot]"
git config user.email "157769597+Lullabot-Drainpipe[bot]@users.noreply.github.com"
- name: Delete ref from drainpipe-dev
working-directory: drainpipe-dev
run: |
git push origin --delete ${{ github.ref_name }}

0 comments on commit d0bcec0

Please sign in to comment.