forked from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: captain-Akshay <[email protected]>
- Loading branch information
1 parent
78c71ce
commit ad2e2e3
Showing
1 changed file
with
21 additions
and
22 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: Model Component Generator and Updater | ||
on: | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
@@ -13,7 +13,7 @@ jobs: | |
with: | ||
token: ${{ secrets.GH_ACCESS_TOKEN }} | ||
fetch-depth: 1 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
|
@@ -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; | ||
|
@@ -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 | ||
|
@@ -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] | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 }}. |