-
Notifications
You must be signed in to change notification settings - Fork 20
Updating workflow to integrate with GH action. #1427
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
base: develop
Are you sure you want to change the base?
Changes from 3 commits
ba99748
938465a
9175202
4c8a46e
1b79c9c
750634f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,146 +1,143 @@ | ||||||||||||||||||||||||||||||||||
| name: Build and Push civictheme-monorepo-drupal to Quant Cloud | ||||||||||||||||||||||||||||||||||
| 'on': | ||||||||||||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||||||||||||
| - master | ||||||||||||||||||||||||||||||||||
| - develop | ||||||||||||||||||||||||||||||||||
| - quant-cloud-migration | ||||||||||||||||||||||||||||||||||
| - feature/* | ||||||||||||||||||||||||||||||||||
| - pr-* | ||||||||||||||||||||||||||||||||||
| - content/* | ||||||||||||||||||||||||||||||||||
| tags: | ||||||||||||||||||||||||||||||||||
| - '*' | ||||||||||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||||||||||
| branches: '*' | ||||||||||||||||||||||||||||||||||
| # Manual trigger for testing and emergency deployments | ||||||||||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| # Trigger when CircleCI notifies via repository dispatch | ||||||||||||||||||||||||||||||||||
| repository_dispatch: | ||||||||||||||||||||||||||||||||||
| types: [circleci_success] | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
| # Manual trigger for testing and emergency deployments | |
| workflow_dispatch: | |
| # Trigger when CircleCI notifies via repository dispatch | |
| repository_dispatch: | |
| types: [circleci_success] | |
| on: | |
| # Manual trigger for testing and emergency deployments | |
| workflow_dispatch: | |
| # Trigger when CircleCI notifies via repository dispatch | |
| repository_dispatch: | |
| types: [circleci_success] | |
| permissions: | |
| contents: read |
🤖 Prompt for AI Agents
In .github/workflows/build-deploy.yml around lines 3 to 8, repository_dispatch
doesn’t populate github.ref so the workflow is checking out the default branch;
update the checkout step to use the SHA/branch from the repository_dispatch
payload (e.g. github.event.client_payload.sha or
github.event.client_payload.ref/branch) with a fallback to github.ref, and
compute the "quant-cloud-migration" override key from that same payload-derived
branch/sha instead of the default ref so the job builds the CircleCI
commit/branch that triggered the dispatch.
richardgaunt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Uh oh!
There was an error while loading. Please reload this page.