-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mirror drainpipe-dev package branches (#643)
* Mirror drainpipe-dev package branches * Fix job name * restore reset main
- Loading branch information
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Push Drainpipe Dev Package | |
on: | ||
push: | ||
branches: | ||
- main | ||
- '**' | ||
tags: | ||
- 'v*' | ||
|
||
|
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
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 }} |