-
-
Notifications
You must be signed in to change notification settings - Fork 7
executable file
·47 lines (44 loc) · 1.14 KB
/
close-pull-request.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
name: 'Closed Pull Request'
on:
pull_request:
types:
- closed
branches:
- main
- release-*
- next
permissions:
contents: read
packages: write
jobs:
prune_images:
name: Prune pull request images
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
OWNER: andrew-codes
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract node version from package.json
uses: sergeysova/jq-action@v2
id: node_version
with:
cmd: jq .engines.node package.json -r | sed -e 's/"//g' | sed -e 's/>=//g'
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '${{ steps.node_version.outputs.value }}'
- name: Use Yarn
run: corepack enable
- name: Install deps
run: yarn
env:
YARN_ENABLE_HARDENED_MODE: '0'
- name: Prune PR images
run: yarn nx run-many --target=package/prune --verbose
env:
DEBUG: 'playnite-web/*'
GITHUB_TOKEN: ${{ secrets.PKG_DELETE_TOKEN }}
PR_NUMBER: ${{ github.event.number }}