From 257415b512646e61a903eeed8b97c632e23e2007 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 10 Jan 2024 12:38:46 -0800 Subject: [PATCH] build-system: don't discard the get-or-create-build-nr script output That was the whole point of the previous change. Also, run the build number creation on a pull request as well (at least for a while) so we don't need to create new releases in order to test that part of the process). Signed-off-by: Dirk Hohndel --- .github/workflows/post-releasenotes.yml | 5 +++++ scripts/get-atomic-buildnr.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/post-releasenotes.yml b/.github/workflows/post-releasenotes.yml index 15a811d35..fc6b47a91 100644 --- a/.github/workflows/post-releasenotes.yml +++ b/.github/workflows/post-releasenotes.yml @@ -3,6 +3,9 @@ on: push: branches: - master + pull_request: + branches: + - master env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -14,6 +17,7 @@ jobs: - name: checkout sources uses: actions/checkout@v4 + # since we are running this step on a pull request, we will skip build numbers in releases - name: atomically create or retrieve the build number and assemble release notes id: version_number run: | @@ -22,6 +26,7 @@ jobs: # ironically, we have to upload a file, otherwise this won't create a release with just the release notes - name: publish release + if: github.event_name == 'push' uses: softprops/action-gh-release@v1 with: tag_name: v$( /dev/null +bash -x subsurface/scripts/get-or-create-build-nr.sh "$1" echo "build number after get-or-create is $( subsurface/latest-subsurface-buildnumber-extension