From beae073de53a97658a84437a4841e60a59f2f46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Mon, 27 Oct 2025 15:26:51 +0100 Subject: [PATCH 1/3] CI: Update sync release tag to use bot info --- .github/workflows/sync_release_tag.yml | 28 +++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sync_release_tag.yml b/.github/workflows/sync_release_tag.yml index 201a3e8f8..c644c88be 100644 --- a/.github/workflows/sync_release_tag.yml +++ b/.github/workflows/sync_release_tag.yml @@ -4,25 +4,43 @@ on: workflow_dispatch: inputs: tag: - description: "Release tag from PyAEDT to sync" + description: "Release tag from PyAEDT to sync." required: true - + type: string + token: + description: "Token with permissions to create tags." + required: true + type: string + bot-user: + description: "Bot user for git tag and push." + required: true + type: string + bot-email: + description: "Bot email for git tag and push." + required: true + type: string jobs: create-tag: runs-on: ubuntu-latest permissions: contents: write + metadata: read steps: - name: Checkout repository uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: +<<<<<<< Updated upstream persist-credentials: false +======= + fetch-tags: true + token: ${{ inputs.token }} # zizmor: ignore[artipacked] , credentials should be persisted +>>>>>>> Stashed changes - name: Create and push tag run: | - # Configure git username & email - git config --global user.name "${{ secrets.PYANSYS_CI_BOT_USERNAME }}" - git config --global user.email "${{ secrets.PYANSYS_CI_BOT_EMAIL }}" + # Configure git username & email from inputs + git config --global user.name "${{ github.event.inputs.bot-user }}" + git config --global user.email "${{ github.event.inputs.bot-email }}" TAG_NAME="${{ github.event.inputs.tag }}" From 34eca59af125b0841e384e33fd2c7cb27ff5ca61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Mon, 27 Oct 2025 15:29:21 +0100 Subject: [PATCH 2/3] CI: Update input description --- .github/workflows/sync_release_tag.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync_release_tag.yml b/.github/workflows/sync_release_tag.yml index c644c88be..556ca7fea 100644 --- a/.github/workflows/sync_release_tag.yml +++ b/.github/workflows/sync_release_tag.yml @@ -11,12 +11,12 @@ on: description: "Token with permissions to create tags." required: true type: string - bot-user: - description: "Bot user for git tag and push." + user: + description: "User value for git configuration." required: true type: string bot-email: - description: "Bot email for git tag and push." + description: "Email value for git configuration." required: true type: string jobs: From 31a356f03c340601020400cefa4cf53bb3d2efc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Mon, 27 Oct 2025 15:32:55 +0100 Subject: [PATCH 3/3] CI: Fix typos --- .github/workflows/sync_release_tag.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sync_release_tag.yml b/.github/workflows/sync_release_tag.yml index 556ca7fea..346548aae 100644 --- a/.github/workflows/sync_release_tag.yml +++ b/.github/workflows/sync_release_tag.yml @@ -15,7 +15,7 @@ on: description: "User value for git configuration." required: true type: string - bot-email: + email: description: "Email value for git configuration." required: true type: string @@ -29,18 +29,14 @@ jobs: - name: Checkout repository uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: -<<<<<<< Updated upstream - persist-credentials: false -======= fetch-tags: true token: ${{ inputs.token }} # zizmor: ignore[artipacked] , credentials should be persisted ->>>>>>> Stashed changes - name: Create and push tag run: | # Configure git username & email from inputs - git config --global user.name "${{ github.event.inputs.bot-user }}" - git config --global user.email "${{ github.event.inputs.bot-email }}" + git config --global user.name "${{ github.event.inputs.user }}" + git config --global user.email "${{ github.event.inputs.email }}" TAG_NAME="${{ github.event.inputs.tag }}"