-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[No QA] Change createNewVersion back to dispatchable workflow #9873
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
Changes from all commits
3f97762
622e05c
a2fada8
f530263
c2e84e9
935b3b8
5452f1b
e37fa1e
fd3a5bb
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 |
|---|---|---|
|
|
@@ -26,9 +26,28 @@ jobs: | |
|
|
||
| createNewVersion: | ||
| needs: validateActor | ||
| runs-on: ubuntu-latest | ||
| if: ${{ fromJSON(needs.validateActor.outputs.IS_DEPLOYER) && github.event.inputs.NEW_VERSION == '' }} | ||
| uses: Expensify/App/.github/workflows/createNewVersion.yml@main | ||
| secrets: inherit | ||
| outputs: | ||
| NEW_VERSION: ${{ steps.getNewVersion.outputs.NEW_VERSION }} | ||
| steps: | ||
| - name: Checkout main branch | ||
| uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
| with: | ||
| ref: main | ||
|
|
||
| - name: Create new BUILD version | ||
| uses: Expensify/App/.github/actions/javascript/triggerWorkflowAndWait@main | ||
| with: | ||
| GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }} | ||
| WORKFLOW: createNewVersion.yml | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see that
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep! Making that parameter optional is one of the changes I've decided to optimistically keep from the other PR |
||
|
|
||
| - name: Pull main to get the new version | ||
| id: getNewVersion | ||
| run: | | ||
| git pull origin main | ||
| echo "New version is $(npm run print-version --silent)" | ||
| echo "::set-output name=NEW_VERSION::$(npm run print-version --silent)" | ||
|
|
||
| cherryPick: | ||
| needs: [validateActor, createNewVersion] | ||
|
|
||
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.
we no longer need
token: ${{ secrets.OS_BOTIFY_TOKEN }}for this step?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.
Nope. Never did 🙂