Why does my github actions keep changing to the repo with the latest commit push, how…
Jump to turn (9)
- 1Why does my github actions keep changing to the repo with the latest commit push
- 2Teach me enough prisma so i am comfortable with it
- 3Now give me an exmaple of 3 or 4 related schemas and teach me about where, inclu
- 4Write a query using the above schema and include select where properties
- 5How do i ssh into an ubuntu server from windows if have a public key , username
- 6What about from ubuntu os
- 7How do add my public key to access from the terminal
- 8What if there is one public key for all users ?
- 9How can users login for the above scenario
- User
Why does my github actions keep changing to the repo with the latest commit push, how can i set it to only deploy when main has recent pushes?
- Assistant
To ensure that your Github Action workflow only deploys when there are recent pushes to the main branch, you need to add a trigger condition in the workflow file. A trigger condition is used to specify when a particular workflow should be triggered.
You can add the following code at the beginning of your workflow file to specify that the workflow should only run on the main branch and when there are recent pushes:
yaml