Skip to content

Commit

Permalink
DEV2-3650 - on master (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimacodota authored Sep 9, 2023
1 parent b8b7e1b commit e8c8362
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/production-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ on:
required: true
default: false
description: Yes, I want to release.
is-production:
type: boolean
required: true
default: true
description: "release to production saas"

is-self-hosted:
type: boolean
required: true
default: true
description: "release to self hosted"

jobs:
confirm:
Expand Down Expand Up @@ -75,13 +86,13 @@ jobs:
- name: Commit changes
run: |
NEW_VERSION="${{ steps.get_build_version.outputs.build_version }}"
git pull origin master --no-edit
git commit -am "Set version to $NEW_VERSION"
git push
git tag v$NEW_VERSION
git push origin v$NEW_VERSION
publish-production:
if: ${{ github.event.inputs.is-production == 'true' }}
name: Publish to PRODUCTION
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -110,9 +121,9 @@ jobs:
- name: Checkout Chat Application Repository
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: 'codota/tabnine-chat-app'
version: 'tags/${{ env.version }}'
file: 'build.tar.gz'
repo: "codota/tabnine-chat-app"
version: "tags/${{ env.version }}"
file: "build.tar.gz"
token: ${{ secrets.gh_builder_token }}
- name: Extract Chat App Build
run: |
Expand Down Expand Up @@ -160,6 +171,7 @@ jobs:
SLACK_FOOTER: " "

publish-self-hosted:
if: ${{ github.event.inputs.is-self-hosted == 'true' }}
name: Publish self hosted
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -189,9 +201,9 @@ jobs:
- name: Checkout Chat Application Repository
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: 'codota/tabnine-chat-app'
version: 'tags/${{ env.version }}'
file: 'build.tar.gz'
repo: "codota/tabnine-chat-app"
version: "tags/${{ env.version }}"
file: "build.tar.gz"
token: ${{ secrets.gh_builder_token }}

- name: Extract Chat App Build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fun showUserLoggedInNotification() {
val userInfo = ServiceManager.getService(UserInfoService::class.java).fetchAndGet()
// show notification only if the user is part of a team
if (userInfo?.team == null) {
Logger.getInstance(showUserLoggedInNotification().javaClass)
Logger.getInstance(::showUserLoggedInNotification.javaClass)
.debug("Unable to get user info or no team. Info: ${userInfo ?: "null"}")
return
}
Expand Down

0 comments on commit e8c8362

Please sign in to comment.