Skip to content

Commit

Permalink
update build pipeline for sequential revision #s
Browse files Browse the repository at this point in the history
  • Loading branch information
RaidMax committed Jun 30, 2024
1 parent b2c2ab0 commit 57143b1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build_application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,15 @@ jobs:
build_num: ${{ steps.generate_build_number.outputs.build_num }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Make build number
id: generate_build_number
run: |
build_num=$(date +'%Y.%-m.%-d').$(date +'%3N' | sed 's/^0*//')
today=$(date +%Y-%m-%d)
commit_count=$(git rev-list --count --since="$today 00:00:00" --until="$today 23:59:59")
build_num=$(date +'%Y.%-m.%-d').$(commit_count)
echo "build_num=$build_num" >> $GITHUB_OUTPUT
echo "Build number is $build_num"
Expand All @@ -50,9 +55,6 @@ jobs:
buildNumber: ${{ needs.make_version.outputs.build_num }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
Expand Down

0 comments on commit 57143b1

Please sign in to comment.