Skip to content

FOSSC-67 dosfstools #2394

FOSSC-67 dosfstools

FOSSC-67 dosfstools #2394

Workflow file for this run

# SPDX-FileCopyrightText: Maximilian Huber <maximilian.huber@tngtech.com>
# SPDX-FileCopyrightText: Helio Chissini de Castro <heliocastro@gmail.com>
#
# 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: actions@github.com
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'