From 57143b1acf65a9cd3e71ab0f4823a0e5654027d7 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 29 Jun 2024 22:33:16 -0500 Subject: [PATCH] update build pipeline for sequential revision #s --- .github/workflows/build_application.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_application.yml b/.github/workflows/build_application.yml index 8c3b4c49..b90b74fc 100644 --- a/.github/workflows/build_application.yml +++ b/.github/workflows/build_application.yml @@ -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" @@ -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: