Skip to content

Commit

Permalink
Merge pull request #633 from souvikinator/souvik/fix-error-code-workf…
Browse files Browse the repository at this point in the history
…low-skipped

Souvik/fix error code workflow skipped
  • Loading branch information
leecalcote authored Jan 12, 2025
2 parents 65d8e78 + de8b2fa commit 599c6be
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/error-codes-updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@ name: Meshkit Error Codes Utility Runner
on:
push:
branches:
- 'master'
- "master"
paths:
- '**.go'
- "**.go"

jobs:
Update-error-codes:
name: Error codes utility
if: github.repository == 'layer5io/meshkit'
if: github.repository == 'meshery/meshkit'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# token here with write access to meshkit repo
# token here with write access to meshkit repo
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
ref: 'master'
ref: "master"

- name: Setup Go
uses: actions/setup-go@master
with:
go-version: '1.23'
go-version: "1.23"

- name: Run utility
run: |
go run github.com/layer5io/meshkit/cmd/errorutil -d . update --skip-dirs meshery -i ./helpers -o ./helpers
go run github.com/meshery/meshkit/cmd/errorutil -d . update --skip-dirs meshery -i ./helpers -o ./helpers
- name: Pull changes from remote
run: git pull origin master
Expand All @@ -37,19 +37,19 @@ jobs:
commit_user_name: l5io
commit_user_email: [email protected]
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
commit_options: '--signoff'
commit_options: "--signoff"
commit_message: "run error codes utility"
file_pattern: helpers/ **.go

# to push changes to meshery docs
- name: Checkout meshery
uses: actions/checkout@master
with:
repository: 'meshery/meshery'
repository: "meshery/meshery"
# token with write access to meshery repository
token: ${{ secrets.GH_ACCESS_TOKEN }}
path: 'meshery'
ref: 'master'
path: "meshery"
ref: "master"

- name: Update and push docs
run: |
Expand Down

0 comments on commit 599c6be

Please sign in to comment.