Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
ref: staging
token: ${{ secrets.OS_BOTIFY_TOKEN }}

- name: Setup git for OSBotify
uses: ./.github/actions/composite/setupGitForOSBotifyApp
id: setupGitForOSBotify
Expand Down Expand Up @@ -65,9 +65,6 @@ jobs:
PR_LIST: ${{ steps.getReleasePRList.outputs.PR_LIST }}

- name: 🚀 Create release to trigger production deploy 🚀
uses: softprops/action-gh-release@affa18ef97bc9db20076945705aba8c516139abd
with:
tag_name: ${{ env.PRODUCTION_VERSION }}
body: ${{ steps.getReleaseBody.outputs.RELEASE_BODY }}
run: gh release create ${{ env.PRODUCTION_VERSION }} --notes ${{ steps.getReleaseBody.outputs.RELEASE_BODY }}
env:
GITHUB_TOKEN: ${{ steps.setupGitForOSBotify.outputs.OS_BOTIFY_API_TOKEN }}
5 changes: 1 addition & 4 deletions workflow_tests/assertions/deployAssertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ function assertDeployProductionJobExecuted(workflowResult: Step[], didExecute =
null,
'DEPLOY_PRODUCTION',
'Creating release to trigger production deploy',
[
{key: 'tag_name', value: '1.2.3'},
{key: 'body', value: 'Release body'},
],
[],
[{key: 'GITHUB_TOKEN', value: 'os_botify_api_token'}],
),
] as const;
Expand Down
2 changes: 1 addition & 1 deletion workflow_tests/mocks/deployMocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const DEPLOY_PRODUCTION__CREATE_RELEASE__STEP_MOCK = createMockStep(
'🚀 Create release to trigger production deploy 🚀',
'Creating release to trigger production deploy',
'DEPLOY_PRODUCTION',
['tag_name', 'body'],
[],
['GITHUB_TOKEN'],
);
const DEPLOY_PRODUCTION_STEP_MOCKS = [
Expand Down