Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
c0fe03e
commit 95022e8
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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