Skip to content

Commit

Permalink
ci: use different version for PR and nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Dec 22, 2024
1 parent 6db3174 commit 59884c0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,21 @@ jobs:
vcpkg install --triplet x64-windows-static sqlite3
- name: Generate nightly version info
if: ${{ inputs.nightly }} || github.event_name == 'pull_request'
if: ${{ inputs.nightly }}
run: |
cargo xtask update-version --major $env:VER_MAJOR --minor $env:VER_MINOR --patch $env:VER_PATCH -b $env:GITHUB_RUN_NUMBER
type version.rc
type installer/version.wxi
- name: Generate pull_request version info
if: github.event_name == 'pull_request'
env:
PR_NUMBER: ${{ github.event.number }}
run: |
cargo xtask update-version --major 0 --minor 0 --patch $env:PR_NUMBER -b $env:GITHUB_RUN_NUMBER
type version.rc
type installer/version.wxi
- name: Build
shell: cmd
run: |
Expand Down

0 comments on commit 59884c0

Please sign in to comment.