-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (39 loc) · 1.22 KB
/
check-plugin-addition-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
name: Check request of plugin jar addition
on:
pull_request:
paths:
- plugins/**
jobs:
check:
name: check manifest and signature
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
lfs: true
- name: get changed jar files
id: changed-jar-files
uses: tj-actions/changed-files@v35
with:
files: |
plugins/**/*.jar
- name: get changed files
id: changed-sign-files
uses: tj-actions/changed-files@v35
with:
files: |
plugins/**/*.jar.asc
- run: |
echo "Added jar file: ${{ steps.changed-jar-files.outputs.added_files }}"
echo "Added signature file: ${{ steps.changed-sign-files.outputs.added_files }}"
- run: |
sudo apt install -y gpg
- name: check manifest
run: kotlin ci/check-manifest.main.kts ${{ steps.changed-jar-files.outputs.added_files }}
- name: download public key
run: |
kotlin ci/import-public-key.main.kts ${GITHUB_ACTOR}
- name: check signature
run: |
gpg --verify --keyring "/tmp/trusteddb.gpg" ${{ steps.changed-sign-files.outputs.added_files }}