From 9ab4dd30cba9613996af9a1a93643d43ce675fe3 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Mon, 23 Dec 2024 21:11:54 -0700 Subject: [PATCH] fix prefix --- .github/workflows/maintenance.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml index dbe5ef14a6..35de6fae0a 100644 --- a/.github/workflows/maintenance.yml +++ b/.github/workflows/maintenance.yml @@ -14,11 +14,21 @@ jobs: - id: set-key run: echo "key=C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0" >> $GITHUB_OUTPUT + determine-prefix: + runs-on: ubuntu-latest + outputs: + prefix: ${{ steps.set-prefix.outputs.prefix }} + steps: + - id: set-prefix + run: echo "prefix=maintenance-$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + create-branch-prefix: - needs: determine-signing-key + needs: + - determine-signing-key + - determine-prefix uses: ./.github/workflows/create_branch_prefix.yml with: - prefix: "maintenance-${{ format('yyyy-MM-dd', 'UTC') }}" + prefix: ${{ needs.determine-prefix.outputs.prefix }} version: $(jq -r '.version' package.json) signing-key-id: ${{ needs.determine-signing-key.outputs.signing-key-id }} secrets: