Skip to content

Commit

Permalink
🔧Adjust development version number;
Browse files Browse the repository at this point in the history
this should help me dry run.
  • Loading branch information
MarmadileManteater committed Jan 15, 2023
1 parent 8706ef2 commit a8944f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/buildCordova.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ jobs:
- name: Set Version Number Variable
id: versionNumber
uses: actions/github-script@v6
env:
VERSION_NUMBER_DEVELOPMENT: ${{ env.PACKAGE_VERSION }}-development-${{ github.run_number }}
with:
result-encoding: string
script: |
return "${{ env.VERSION_NUMBER_DEVELOPMENT }}"
const [ packageVersion, runNumber ] = ["${{ env.PACKAGE_VERSION }}", "${{ github.run_number }}"]
const [ major, minor, patch ] = packageVersion.split(".")
return `${major * 10000000 + minor * 100000 + patch * 1000 + runNumber}`
- name: Update package.json version
uses: jossef/action-set-json-field@v2
with:
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
- name: Build APK with Cordova with Node.js ${{ matrix.node-version}}
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
run: npm run build:cordova freetube-${{ steps.versionNumber.outputs.result }}.apk cordova ./freetube.keystore ${{ secrets.KEYSTORE_PASSWORD }}

- name: Upload Cordova APK Artifact
uses: actions/upload-artifact@v3
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
Expand Down

0 comments on commit a8944f6

Please sign in to comment.