Skip to content

Initial prototype phase of WA AI Dart #3

Initial prototype phase of WA AI Dart

Initial prototype phase of WA AI Dart #3

Workflow file for this run

# Copyright 2024 punExperiment
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: 🧾 License
on: push
env:
HOLDER: punExperiment
LICENSE: apache
jobs:
process:
name: 'append license'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Go environment
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.21'
check-latest: true
- name: Append license to header
# Addlicense v1.1.1
run: |
go install github.com/google/addlicense@dc31ac9ffcca99c9457226366135701794b128c0
addlicense -c $HOLDER -l $LICENSE .
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Push
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
with:
commit_message: 📝 Append license to files
commit_user_name: 'License keepers'
commit_user_email: [email protected]
commit_options: '--signoff'