From 5614c20d6dd6a300f4474614c65dd0d9f7a270d7 Mon Sep 17 00:00:00 2001 From: Robert Carroll Date: Wed, 19 Aug 2026 15:35:04 -0500 Subject: [PATCH 1/2] Update deprecated approach --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11d6708..c198704 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: # Get date for the release - name: Get current date id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + run: echo "DATE_VAR=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" # Run the release file generation - name: Update release files run: cd src/ontology/ && make ROBOT_ENV='ROBOT_JAVA_ARGS=-Xmx6G' GITHUB_ACTION=true prepare_release_fast -B @@ -36,7 +36,7 @@ jobs: with: generate_release_notes: true draft: true - tag_name: v${{ steps.date.outputs.date }} + tag_name: v${{ steps.date.outputs.DATE_VAR }} files: | camo.owl camo.obo From 220b5c8ad6cf9eb8d0c99a95f843b9841dd779a0 Mon Sep 17 00:00:00 2001 From: Robert Carroll Date: Wed, 19 Aug 2026 16:11:52 -0500 Subject: [PATCH 2/2] Add release check --- .github/workflows/release.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c198704..94ff98b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,9 +24,18 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 # Get date for the release - - name: Get current date + - name: Get proposed tag id: date - run: echo "DATE_VAR=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" + run: echo "TAG=v$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" + # Fail out if the release exists and is published + - uses: mukunku/release-exists-action@v1.1.0 + id: check_release + with: + tag: ${{ steps.date.outputs.TAG }} + - name: Check for existing, published release + id: assert_no_published_release + run: exit 1 + if: steps.check_release.outputs.exists == 'true' && steps.check_release.outputs.draft == 'false' # Run the release file generation - name: Update release files run: cd src/ontology/ && make ROBOT_ENV='ROBOT_JAVA_ARGS=-Xmx6G' GITHUB_ACTION=true prepare_release_fast -B @@ -36,7 +45,7 @@ jobs: with: generate_release_notes: true draft: true - tag_name: v${{ steps.date.outputs.DATE_VAR }} + tag_name: ${{ steps.date.outputs.TAG }} files: | camo.owl camo.obo