-
Notifications
You must be signed in to change notification settings - Fork 4k
[No QA] Create triggerWorkflowAndWait action #2495
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3bfec13
Create triggerWorkflowAndWait action
roryabraham 7b03e0c
temporarily switch repo to public-test-repo for testing
roryabraham f9b8867
Rebuild GH actions
roryabraham 673568c
Update timer and add process exits
roryabraham ad134ff
Temporarily use Public-Test-Repo in GithubUtils too
roryabraham 3e33fd6
temporarily hardcode ref in Public-Test-Repo
roryabraham 7d7969e
Make temporary ref a branch, not a commit
roryabraham 98f1392
Rebuild GH actions
roryabraham e1d3c28
Use ref main
roryabraham 9359021
Log listWorkflowRuns response
roryabraham a437cbc
Stringify workflow runs
roryabraham 2cb92d7
Use last workflow_run in response instead of first
roryabraham b8e1686
Fix an oops
roryabraham 045d871
Move error check into then block
roryabraham cb55342
Catch error in loop
roryabraham 87c4724
Log while loop conditions
roryabraham 27b039b
Return promise from second function in promiseWhile
roryabraham 7fb5606
Remove crazy logs and just log when condition is changed
roryabraham 0e32c5d
Clean up logs
roryabraham edce3f4
Make log formats more consistent
roryabraham 0397437
Merge branch 'main' into Rory-TriggerWorkflowAndWait
roryabraham c8c641b
Merge branch 'main' into Rory-TriggerWorkflowAndWait
roryabraham 9e1a782
Create getJSONInput util
roryabraham 479e7f0
Revert test changes and rebuild GH actions
roryabraham 9defb63
Revert missed test changes
roryabraham f5b6c20
Update comments to specify milliseconds
roryabraham d07dcf4
Add timeout for workflow execution
roryabraham 490f73e
Merge branch 'main' into Rory-TriggerWorkflowAndWait
roryabraham 6f3a96f
Rebuild GH Actions
roryabraham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
.github/actions/getDeployPullRequestList/getDeployPullRequestList.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
.github/actions/markPullRequestsAsDeployed/markPullRequestsAsDeployed.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: 'Trigger workflow and wait' | ||
| description: 'This action triggers a workflow in another repository and waits for the result.' | ||
| inputs: | ||
| GITHUB_TOKEN: | ||
| description: 'Auth token for Expensify.cash Github; necessary for accessing Octokit.' | ||
| required: true | ||
| WORKFLOW: | ||
| description: 'The reference point. For example, you could use main.yml.' | ||
| required: true | ||
| INPUTS: | ||
| description: 'Inputs to pass to the workflow, must be a JSON string' | ||
| required: false | ||
|
|
||
| runs: | ||
| using: 'node12' | ||
| main: './index.js' |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.