preparing for python 3.11.10 #2400
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |