-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci(cloude-release): add repository workflow for cloud release #372
Conversation
Signed-off-by: jerensl <[email protected]>
✅ Deploy Preview for bejewelled-pegasus-b0ce81 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: jerensl <[email protected]>
.github/workflows/release-docs.yml
Outdated
@@ -0,0 +1,94 @@ | |||
name: Publish Version Dispatcher | |||
on: | |||
repository_dispatch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jerensl can we use a workflow_dispatch instead?
Signed-off-by: jerensl <[email protected]>
run: | | ||
release_tag=$(curl -sL -H "Authorization: token $ACCESS_TOKEN" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/layer5io/meshery-cloud/releases/latest | jq -r ".tag_name") | ||
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT | ||
current_tag=$(<build/meshery-cloud.version) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jerensl Can you explain this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MUzairS15 This will load the last tags update in the local filesystem, and do some check if it matches with the current tags update it will not do the other step, if so it also will record the version and commit it to the repo.
Wdyt, this is relevant with corn jobs also when an event got triggered more than one time but not sure
Notes for Reviewers
Signed commits