Skip to content

Commit 3fb7d26

Browse files
committed
Branch Cleanup for Integration Tests
1 parent ff893b9 commit 3fb7d26

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/integration-beta.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626
GIT_CONFIG_NAME: Montezuma
2727
GIT_CONFIG_EMAIL: montezuma@jamesiv.es
2828

29+
- name: Cleanup Generated Branch
30+
uses: dawidd6/action-delete-branch@v2.0.1
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
branches: gh-pages-beta
34+
35+
2936
# Deploys using checkout@v2 with a GITHUB_TOKEN.
3037
integration-checkout-v2:
3138
needs: integration-checkout-v1
@@ -45,6 +52,12 @@ jobs:
4552
BASE_BRANCH: dev
4653
TARGET_FOLDER: montezuma2
4754

55+
- name: Cleanup Generated Branch
56+
uses: dawidd6/action-delete-branch@v2.0.1
57+
with:
58+
github_token: ${{ secrets.GITHUB_TOKEN }}
59+
branches: gh-pages-beta
60+
4861

4962
# Deploys using a container that requires you to install rsync.
5063
integration-container:
@@ -73,6 +86,13 @@ jobs:
7386
BASE_BRANCH: dev
7487
TARGET_FOLDER: montezuma2
7588

89+
- name: Cleanup Generated Branch
90+
uses: dawidd6/action-delete-branch@v2.0.1
91+
with:
92+
github_token: ${{ secrets.GITHUB_TOKEN }}
93+
branches: gh-pages-beta
94+
95+
7696
# Deploys using an SSH key.
7797
integration-ssh:
7898
needs: integration-container
@@ -97,6 +117,13 @@ jobs:
97117
BASE_BRANCH: dev
98118
TARGET_FOLDER: montezuma3
99119

120+
- name: Cleanup Generated Branch
121+
uses: dawidd6/action-delete-branch@v2.0.1
122+
with:
123+
github_token: ${{ secrets.GITHUB_TOKEN }}
124+
branches: gh-pages-beta
125+
126+
100127
# Deploys using a custom env.
101128
integration-env:
102129
needs: integration-ssh
@@ -125,6 +152,13 @@ jobs:
125152
BASE_BRANCH: dev
126153
TARGET_FOLDER: montezuma4
127154

155+
- name: Cleanup Generated Branch
156+
uses: dawidd6/action-delete-branch@v2.0.1
157+
with:
158+
github_token: ${{ secrets.GITHUB_TOKEN }}
159+
branches: gh-pages-beta
160+
161+
128162
# Deploys using the CLEAN option with SINGLE_COMMIT toggled.
129163
integration-clean:
130164
needs: [integration-checkout-v1, integration-checkout-v2, integration-container, integration-ssh, integration-env]
@@ -144,6 +178,13 @@ jobs:
144178
BASE_BRANCH: dev
145179
CLEAN: true
146180

181+
- name: Cleanup Generated Branch
182+
uses: dawidd6/action-delete-branch@v2.0.1
183+
with:
184+
github_token: ${{ secrets.GITHUB_TOKEN }}
185+
branches: gh-pages-beta
186+
187+
147188
# Deploys to a branch that doesn't exist with SINGLE_COMMIT.
148189
integration-branch-creation:
149190
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)