-
Notifications
You must be signed in to change notification settings - Fork 471
57 lines (53 loc) · 1.86 KB
/
after-close-pr.yml
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
49
50
51
52
53
54
55
56
57
name: 🤖 After closed Pull Request
on:
pull_request:
types: [closed]
jobs:
purge-cache:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
BRANCH: refs/pull/${{ github.event.number }}/merge
steps:
- uses: actions/[email protected]
continue-on-error: true
- run: |
gh cache list --ref $BRANCH > cache.log && cat cache.log
for cacheId in $(gh cache list --ref $BRANCH --json id | jq -r .[].id); do
echo "> gh cache delete $cacheId"
gh cache delete $cacheId
done
delete-firebase-channels:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
channel: pr${{ github.event.number }}-${{ github.head_ref }}
steps:
- uses: actions/[email protected]
- name: Drop e2e report site
uses: w9jds/[email protected]
continue-on-error: true
with:
args: hosting:channel:delete ${{ env.channel }}-e2e --site taiga-previews-demo-e2e-report -f
env:
GCP_SA_KEY: ${{ secrets.FIREBASE_TAIGA_PREVIEWS_SA }}
PROJECT_ID: taiga-previews
- name: Drop preview demo site
uses: w9jds/[email protected]
continue-on-error: true
with:
args: hosting:channel:delete ${{ env.channel }}-demo --site taiga-previews-demo -f
env:
GCP_SA_KEY: ${{ secrets.FIREBASE_TAIGA_PREVIEWS_SA }}
PROJECT_ID: taiga-previews
community-contribution:
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions-ecosystem/[email protected]
if: ${{ github.event.pull_request.merged == true }}
with:
github_token: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }}
labels: |
community contribution