From 1238e7e2f75b81cf358b9e9ddb602e8404e42547 Mon Sep 17 00:00:00 2001 From: MichalKinas Date: Wed, 25 Feb 2026 17:15:21 +0100 Subject: [PATCH] Add missing script and git tag permissions --- .github/actions/git-tag/action.yml | 7 +++++-- package.json | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/actions/git-tag/action.yml b/.github/actions/git-tag/action.yml index 96fe6b3d9..9da477331 100644 --- a/.github/actions/git-tag/action.yml +++ b/.github/actions/git-tag/action.yml @@ -17,8 +17,11 @@ runs: steps: - name: publish tag shell: bash + env: + BRANCH_NAME: ${{ inputs.branch_name }} + GITHUB_TOKEN: ${{ inputs.github_token }} run: | - if [[ "${{ inputs.branch_name }}" == "master" ]] || [[ "${{ inputs.branch_name }}" == release/* ]]; then + if [[ "$BRANCH_NAME" == "master" ]] || [[ "$BRANCH_NAME" == release/* ]]; then VERSION=$(jq -cr '.version' < package.json) echo "git tag -a ${VERSION} -m ${VERSION}" @@ -28,7 +31,7 @@ runs: if [[ "${{ inputs.dry-run }}" != "true" ]]; then git tag -a ${VERSION} -m "${VERSION} [ci skip] " git remote rm origin - GITHUB_REPO=https://${{ inputs.github_token }}:x-oauth-basic@github.com/Alfresco/alfresco-content-app.git + GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-content-app.git git remote add origin $GITHUB_REPO git push origin --tags fi diff --git a/package.json b/package.json index de439c3dc..e4e2e6cd5 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "print-affected:build": "nx print-affected --target=build --select=tasks.target.project", "print-affected:test": "nx print-affected --target=test --select=tasks.target.project", "print-affected:lint": "nx print-affected --target=lint --select=tasks.target.project", - "lintfix": "nx affected:lint --fix" + "lintfix": "nx affected:lint --fix", + "ci:build:many": "nx run-many --target=build" }, "repository": { "type": "git",