Skip to content

Revert change to branch workflow GITHUB_TOKEN. (#628) #74

Revert change to branch workflow GITHUB_TOKEN. (#628)

Revert change to branch workflow GITHUB_TOKEN. (#628) #74

name: Generate on commit to master
on:
push:
branches:
- master
workflow_dispatch:
jobs:
GenerateOnMaster:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN_EXTRA }}
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
id: go
- run: make format
- name: Commit & Push changes
run: |
if [[ ! -z $(git status --porcelain) ]]; then
git config --local user.email [email protected]
git config --local user.name elasticcloudclients
git add NOTICE
git commit -m "Update NOTICE"
git push
fi