-
Notifications
You must be signed in to change notification settings - Fork 21
51 lines (43 loc) · 1.56 KB
/
spdx-tools-java.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
# SPDX-FileCopyrightText: Maximilian Huber <[email protected]>
# SPDX-FileCopyrightText: Helio Chissini de Castro <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
name: spdx/tools-java workflow
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
syntax-check-of-tag-value:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "bootstrap spdx/tools-java"
run: .github/workflows/scripts/spdx-tools-java-wrapper.sh bootstrap
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v35
with:
files: |
**/*.spdx
- name: "verify touched tag-value documents"
run: .github/workflows/scripts/verify.sh ${{ steps.changed-files.outputs.all_changed_files }}
if: github.event_name == 'pull_request'
# TODO: this should also (or maybe just) happen post merge
- name: "convert touched tag-value documents"
run: .github/workflows/scripts/convert.sh ${{ steps.changed-files.outputs.all_changed_files }}
if: github.event_name == 'pull_request'
- uses: EndBug/add-and-commit@v9
with:
message: "Generated counterpart file by Github Actions Bot"
committer_name: GitHub Actions
committer_email: [email protected]
if: github.event_name == 'pull_request'
- name: "verify all tag-value documents"
run: .github/workflows/scripts/verify.sh all
if: github.event_name != 'pull_request'