-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fredrick/issue 314/git action integration #346
base: master
Are you sure you want to change the base?
Fredrick/issue 314/git action integration #346
Conversation
Kudos, SonarCloud Quality Gate passed! |
I guess the first thing that needs to be addressed is that it works on it's own:
|
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.
1 small change, and 1 bigger change please 🙏
.github/workflows/backend.yml
Outdated
- if: github.ref == 'refs/heads/master' && job.status == 'success' | ||
run: | | ||
git push -u origin HEAD:master -f |
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.
this is interesting. it deploys in the previous step, and if successful auto-merges the code. but i don't think I like that approach. I'd rather only
deploy if it is master. so maybe better to move this if
statement to the previous deploy step, and so that we only deploy after the PR is closed and merged to master
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.
the current build fails: https://github.com/TheIOFoundation/ProjectLockdown/pull/346/checks?check_run_id=2866537758
npm ERR! Invalid version: "2.0"
🤷 I'm not sure why
and I think you need to update your branch with the latest master
so that the Netlify errors go away
.github/workflows/backend.yml
Outdated
- if: github.ref == 'refs/heads/master' && job.status == 'success' | ||
run: | | ||
git push -u origin HEAD:master -f | ||
|
||
- name: "Deploy to Azure" | ||
uses: azure/webapps-deploy@v2 |
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.
I think this is all that is needed
- if: github.ref == 'refs/heads/master' && job.status == 'success' | |
run: | | |
git push -u origin HEAD:master -f | |
- name: "Deploy to Azure" | |
uses: azure/webapps-deploy@v2 | |
- if: github.ref == 'refs/heads/master' && job.status == 'success' | |
name: "Deploy to Azure" | |
uses: azure/webapps-deploy@v2 |
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.
Okay I will correct it now, sorry I did not get any notification on my mail, hence my delayed response.
✔️ Deploy Preview for dazzling-visvesvaraya-f47271 ready! 🔨 Explore the source changes: e09ab9b 🔍 Inspect the deploy log: https://app.netlify.com/sites/dazzling-visvesvaraya-f47271/deploys/60d09bd706ce030008206ef6 😎 Browse the preview: https://deploy-preview-346--dazzling-visvesvaraya-f47271.netlify.app |
New changes updated |
Recent changes updated now. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Manage this branch in SquashTest this branch here: https://fredrickissue-314git-action-in-vs2c7.squash.io |
Hi Jeff,
Kindly check and review, I will make necessary corrections as required.
Thank you.