-
Notifications
You must be signed in to change notification settings - Fork 516
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
fix: run only on main, forks ok #2166
fix: run only on main, forks ok #2166
Conversation
Kudos, SonarCloud Quality Gate passed! |
Re: edit: fix: on schedule - Sorry, I put in for the flows to run on push of the main branch for testing purposes. Just removed this now, so this flow should only run nightly |
A quick confidence check (and a third party review since Alex is on my team 🙂) on this would be appreciated before I hit merge @WadeBarnes @swcurran |
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've typically used github.event.repository.full_name
to get the repository name. I believe you also need to wrap the variable names in ${{ }}
.
Examples:
b657848
to
e9c13f7
Compare
@WadeBarnes I wanted to follow up with you regarding these changes. Thank you for your suggestion, it's greatly appreciated! It looks like this issue is more optional than strictly a problem (https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif). For the time being, I did keep the original format, but, if desired, I can change the format |
@anwalker293, Have you run any tests using this new workflow on your branch? For example tried to trigger it as is on your branch to make sure it behaves as expected and then changed the github.repository to match yours to ensure it triggers as expected? Also have you tested the workflow dispatch trigger? We can see from here, https://github.com/hyperledger/aries-cloudagent-python/actions/runs/4630877399, it's running, but is it behaving as intended on another repo? |
@WadeBarnes I believe so! :) I tested it on my fork of this repo, on the branch |
That's a different workflow, it's the codeql.yml workflow. You're PR is for the |
@WadeBarnes Fixed! (+ the manual triggering for forks can be found here: https://github.com/anwalker293/aries-cloudagent-python/actions/runs/4788375998) |
Signed-off-by: Alex Walker <[email protected]>
Signed-off-by: Alex Walker <[email protected]>
Signed-off-by: Alex Walker <[email protected]>
Signed-off-by: Alex Walker <[email protected]>
Signed-off-by: Alex Walker <[email protected]>
Signed-off-by: Alex Walker <[email protected]>
This reverts commit 115a3a0. Signed-off-by: Alex Walker <[email protected]>
Signed-off-by: Alex Walker <[email protected]>
Signed-off-by: Alex Walker <[email protected]>
c120125
to
b4d90a7
Compare
Kudos, SonarCloud Quality Gate passed! |
Addresses issue #2152 (https://indicio.atlassian.net/browse/ACAP-1004)
I did not include an environment variable, as GitHub seems to throw up its hands when you put it in the workflow file. There seems to be a workaround if you put the variable in .env, but I'm not sure if we want that though...