-
Notifications
You must be signed in to change notification settings - Fork 15
48 lines (40 loc) · 1.31 KB
/
DrainpipeDevClean.yml
File metadata and controls
48 lines (40 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ./scaffold/github/actions/common/setup-git
with:
git-name: Drainpipe Bot
git-email: [email protected]
- name: Setup SSH
uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0
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 ${GH_EVENT_REF}
git remote add origin [email protected]:Lullabot/drainpipe-dev.git
git fetch origin
git reset --mixed origin/${GH_EVENT_REF}
env:
GH_EVENT_REF: ${{ github.event.ref }}
- name: Delete ref from drainpipe-dev
working-directory: drainpipe-dev
run: |
git push origin --delete ${GH_EVENT_REF}
env:
GH_EVENT_REF: ${{ github.event.ref }}