Notify remote to stop publishing when last local subscriber is closed. #288
Workflow file for this run
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
name: licensecheck | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- '.github/workflows/licensecheck.yml' | |
- '**.go' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- '.github/workflows/licensecheck.yml' | |
- '**.go' | |
permissions: | |
contents: read | |
jobs: | |
golang: | |
name: golang | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install licensecheck | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install licensecheck | |
- id: licensecheck | |
name: Check licenses | |
run: | | |
{ | |
echo 'CHECK_RESULT<<EOF' | |
licensecheck *.go */*.go | |
echo EOF | |
} >> "$GITHUB_ENV" | |
- name: Check for missing licenses | |
run: | | |
MISSING=$(echo "$CHECK_RESULT" | grep -v "_easyjson.go" | grep UNKNOWN || true) | |
if [ -n "$MISSING" ]; then \ | |
echo "$MISSING"; \ | |
exit 1; \ | |
fi |