Skip to content

preparing for protobuf 28.3 #2769

preparing for protobuf 28.3

preparing for protobuf 28.3 #2769

# 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'