Skip to content

Commit c01c033

Browse files
committed
Updates version.
1 parent a2e509a commit c01c033

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/ant.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ name: Build Jitsi Desktop
22

33
on: [push]
44

5+
env:
6+
VERSION_OFFSET: 5624
7+
58
jobs:
6-
job-release-ver:
7-
name: Sets version and creates release
9+
job-create-release:
10+
name: Creates release
811
runs-on: ubuntu-latest
912
steps:
1013
- name: Set Version
11-
run: echo ::set-env name=VERSION::$((GITHUB_RUN_NUMBER + 5624))
14+
run: echo ::set-env name=VERSION::$((GITHUB_RUN_NUMBER + VERSION_OFFSET))
1215
- name: Create Release
1316
id: create_release
1417
uses: actions/create-release@v1
@@ -22,9 +25,7 @@ jobs:
2225
job-debian-build:
2326
name: Debian Build
2427
runs-on: ubuntu-18.04
25-
needs: job-release-ver
26-
env:
27-
VERSION: ${{ jobs.job-release-ver.env.VERSION }}
28+
needs: job-create-release
2829
steps:
2930
- uses: actions/checkout@v2
3031
- name: Set up JDK 1.8
@@ -33,6 +34,8 @@ jobs:
3334
java-version: 1.8
3435
- name: Install dpkg tools
3536
run: sudo apt-get install dpkg-dev debhelper javahelper
37+
- name: Set Version
38+
run: echo ::set-env name=VERSION::$((GITHUB_RUN_NUMBER + VERSION_OFFSET))
3639
- name: Build with Ant
3740
run: ant -noinput -buildfile build.xml -Dsplashscreen.enable=true -Dlabel=$VERSION rebuild deb
3841
# - name: Test output

0 commit comments

Comments
 (0)