Skip to content

Commit

Permalink
feat(pipeline): use tag as version number for release
Browse files Browse the repository at this point in the history
SUITEDEV-25606

Co-authored-by: davidSchuppa <[email protected]>
Co-authored-by: LasOri <[email protected]>
  • Loading branch information
3 people committed Dec 3, 2020
1 parent 6bdb954 commit ef33cb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/on_tag_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ jobs:
name: google-services.json
json: ${{ secrets.GOOGLE_SERVICES_JSON }}
dir: sample

- name: setup RELEASE_VERSION
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Create release keystore file
shell: bash
run: |
Expand Down
4 changes: 2 additions & 2 deletions gradle/version.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ ext {

git.fetch()

gitVersionName = git.describe()
gitVersionCode = gitVersionCode = (int) ((new Date().getTime() - 1602845230) / 10000)
gitVersionName = System.env.RELEASE_VERSION == null ? git.describe() : System.env.RELEASE_VERSION
gitVersionCode = gitVersionCode = (int) ((new Date().getTime() - 1602845230) / 10000)
gitVersionCodeTime = git.head().time

if (git.describe() == null) {
Expand Down

0 comments on commit ef33cb0

Please sign in to comment.