mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
Add missing script and git tag permissions
This commit is contained in:
@@ -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
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user