Add missing script and git tag permissions

This commit is contained in:
MichalKinas
2026-02-25 17:15:21 +01:00
parent 50f8e49a4b
commit 1238e7e2f7
2 changed files with 7 additions and 3 deletions
+5 -2
View File
@@ -17,8 +17,11 @@ runs:
steps: steps:
- name: publish tag - name: publish tag
shell: bash shell: bash
env:
BRANCH_NAME: ${{ inputs.branch_name }}
GITHUB_TOKEN: ${{ inputs.github_token }}
run: | 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) VERSION=$(jq -cr '.version' < package.json)
echo "git tag -a ${VERSION} -m ${VERSION}" echo "git tag -a ${VERSION} -m ${VERSION}"
@@ -28,7 +31,7 @@ runs:
if [[ "${{ inputs.dry-run }}" != "true" ]]; then if [[ "${{ inputs.dry-run }}" != "true" ]]; then
git tag -a ${VERSION} -m "${VERSION} [ci skip] " git tag -a ${VERSION} -m "${VERSION} [ci skip] "
git remote rm origin 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 remote add origin $GITHUB_REPO
git push origin --tags git push origin --tags
fi fi
+2 -1
View File
@@ -22,7 +22,8 @@
"print-affected:build": "nx print-affected --target=build --select=tasks.target.project", "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:test": "nx print-affected --target=test --select=tasks.target.project",
"print-affected:lint": "nx print-affected --target=lint --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": { "repository": {
"type": "git", "type": "git",