Skip to content

Commit

Permalink
workflow miss
Browse files Browse the repository at this point in the history
Signed-off-by: captain-Akshay <[email protected]>
  • Loading branch information
captain-Akshay committed Feb 21, 2024
1 parent 78c71ce commit ad2e2e3
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions .github/workflows/model-generator.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Model Component Generator and Updater
on:
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
Expand All @@ -13,7 +13,7 @@ jobs:
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
fetch-depth: 1

- name: Setup Go
uses: actions/setup-go@v5
with:
Expand All @@ -23,7 +23,7 @@ jobs:
run: git pull origin master
- name: Build mesheryctl
run: |
cd mesheryctl; make;
cd mesheryctl; make;
- name: Generate Models and Components
run: |
cd mesheryctl;
Expand All @@ -34,7 +34,7 @@ jobs:
with:
name: generate-logs
path: ~/.meshery/logs/
- name: Commit changes
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_user_name: l5io
Expand All @@ -43,7 +43,7 @@ jobs:
commit_options: "--signoff"
commit_message: "New Models generated"
branch: master

- name: Send Email on Model Generator Failure
if: failure()
uses: dawidd6/[email protected]
Expand All @@ -60,7 +60,6 @@ jobs:
The GitHub Actions workflow in ${{ github.repository }} has failed.
You can find more details in the GitHub Actions log ${{ github.workflow }}.
update-components:
name: Update Components
needs: generate-components
Expand All @@ -71,21 +70,21 @@ jobs:
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
fetch-depth: 1

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Pull changes from remote
run: git pull origin master
run: git pull origin master
- name: Build mesheryctl
run: |
cd mesheryctl; make;
cd mesheryctl; make;
- name: Run Model Updater
run: |
cd mesheryctl;
./mesheryctl registry update -i ../server/meshmodel --spreadsheet-id "1DZHnzxYWOlJ69Oguz4LkRVTFM79kC2tuvdwizOJmeMw" --spreadsheet_cred "${{ secrets.INTEGRATION_SPREADSHEET_CRED }}"
- name: Commit changes
./mesheryctl registry update -i ../server/meshmodel --spreadsheet-id "1DZHnzxYWOlJ69Oguz4LkRVTFM79kC2tuvdwizOJmeMw" --spreadsheet-cred "${{ secrets.INTEGRATION_SPREADSHEET_CRED }}"
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_user_name: l5io
Expand All @@ -98,14 +97,14 @@ jobs:
if: failure()
uses: dawidd6/[email protected]
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: GitHub Actions - Workflow Failure
from: |
"Model Updater" <[email protected]>
to: [email protected]
body: |
The GitHub Actions workflow in ${{ github.repository }} has failed.
You can find more details in the GitHub Actions log ${{ github.workflow }}.
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: GitHub Actions - Workflow Failure
from: |
"Model Updater" <[email protected]>
to: [email protected]
body: |
The GitHub Actions workflow in ${{ github.repository }} has failed.
You can find more details in the GitHub Actions log ${{ github.workflow }}.

0 comments on commit ad2e2e3

Please sign in to comment.