From 1a005fa41b367eb72638d233a3f0728eb6e36642 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 18 Jun 2025 08:49:51 +0800 Subject: [PATCH] Create licenses.yml --- .github/workflows/licenses.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/licenses.yml diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml new file mode 100644 index 0000000..b5e42ed --- /dev/null +++ b/.github/workflows/licenses.yml @@ -0,0 +1,21 @@ +name: Update License File +on: + push: + branches: [ main ] + paths: + - 'go.mod' + - 'go.sum' + +jobs: + update-licenses: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.23' + - name: Install go-licenses + run: go install github.com/google/go-licenses@latest + - name: Generate license files + run: | + go-licenses report github.com/emmansun/gmsm > third-party-licenses.md