Skip to content

Commit

Permalink
Auto-generate NOTICE (#524)
Browse files Browse the repository at this point in the history
* Update go.yml

* Update NOTICE

* Update NOTICE

* Test NOTICE

* Update NOTICE

* Run on master only

* Test NOTICE

* Update NOTICE

* Move to job running after merge

* Test NOTICE

* Rename Github Actiosn job

* Specify main branch explicitly

Co-authored-by: elasticcloudclients <elasticcloudclients@elastic.co>
  • Loading branch information
artemnikitin and elasticcloudclients committed Sep 29, 2021
1 parent c0fe03e commit 95022e8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/on_master_generation.yml
@@ -0,0 +1,31 @@
name: Generate on commit to master
on:
push:
branches:
- master
workflow_dispatch:
jobs:
GenerateOnMaster:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
id: go

- run: make format
- name: Commit & Push changes
run: |
if [[ ! -z $(git status --porcelain) ]]; then
git config --local user.email elasticcloudclients@elastic.co
git config --local user.name elasticcloudclients
git add NOTICE
git commit -m "Update NOTICE"
git push
fi
2 changes: 2 additions & 0 deletions NOTICE
Expand Up @@ -17,4 +17,6 @@ github.com/asaskevich/govalidator MIT
github.com/spf13/viper MIT
github.com/stretchr/testify MIT



=========================================================================

0 comments on commit 95022e8

Please sign in to comment.