Skip to content

Commit

Permalink
Run on workflow change event
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 committed Sep 4, 2023
1 parent e59872b commit 43435bb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/tpip-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ on:
# Trigger on pull request any Go package is changed.
pull_request:
paths:
- ".github/workflows/tpip-check.yml"
- "**/go.mod"
- "**/go.sum"
- "scripts/template/**"
workflow_dispatch:

jobs:
Expand All @@ -21,15 +23,15 @@ jobs:
go-version-file: go.mod
check-latest: true

- name: tidy
- name: Go tidy
run: go mod tidy

- name: install go-licenses
- name: Install go-licenses
run: go install github.com/google/go-licenses@latest

- name: Generate TPIP Report
run: |
go-licenses report . --ignore github.com/Open-CMSIS-Pack/cbuild --template ../../scripts/templates/tpip-license.template > ../../scripts/tpip.md
go-licenses report . --ignore github.com/Open-CMSIS-Pack/cbuild --template ../../scripts/template/tpip-license.template > ../../scripts/tpip.md
date +"%Y/%m/%d %T" >> ../../scripts/tpip.md
working-directory: ./cmd/cbuild

Expand Down

0 comments on commit 43435bb

Please sign in to comment.