mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-26 17:24:45 +00:00
[ACA-4649] fix gha checks
This commit is contained in:
parent
b937e23281
commit
483af3165c
4
.github/actions/git-tag/action.yml
vendored
4
.github/actions/git-tag/action.yml
vendored
@ -21,11 +21,11 @@ runs:
|
|||||||
- name: publish tag
|
- name: publish tag
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ inputs.branch_name }} == "master" ]]; then
|
if [[ "${{ inputs.branch_name }}" == "master" ]]; 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}"
|
||||||
if [[ ${{ inputs.dry-run }} == false ]]; then
|
if [[ "${{ inputs.dry-run }}" == "false" ]]; 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://${{ inputs.github_token }}:x-oauth-basic@github.com/Alfresco/alfresco-content-app.git
|
||||||
|
2
.github/actions/publish-image/action.yml
vendored
2
.github/actions/publish-image/action.yml
vendored
@ -29,7 +29,7 @@ runs:
|
|||||||
- name: Get docker image tag name
|
- name: Get docker image tag name
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ inputs.branch_name }} == "master" ]]; then
|
if [[ "${{ inputs.branch_name }}" == "master" ]]; then
|
||||||
TAG_VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
|
TAG_VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
|
||||||
else
|
else
|
||||||
TAG_VERSION=${{ inputs.branch_name }}-${{ github.run_id }}
|
TAG_VERSION=${{ inputs.branch_name }}-${{ github.run_id }}
|
||||||
|
6
.github/actions/publish-libs/action.yml
vendored
6
.github/actions/publish-libs/action.yml
vendored
@ -59,7 +59,7 @@ runs:
|
|||||||
|
|
||||||
for PROJECT in "${PROJECTS[@]}"; do
|
for PROJECT in "${PROJECTS[@]}"; do
|
||||||
echo "Update ${PROJECT} version to ${NEW_LIBRARY_VERSION}"
|
echo "Update ${PROJECT} version to ${NEW_LIBRARY_VERSION}"
|
||||||
if [[ ${{ inputs.dry-run }} == false ]]; then
|
if [[ "${{ inputs.dry-run }}" == "false" ]]; then
|
||||||
(cd cd $PROJECTS_DIR/${PROJECT} && npm version --allow-same-version --no-git-tag-version --force ${NEW_LIBRARY_VERSION})
|
(cd cd $PROJECTS_DIR/${PROJECT} && npm version --allow-same-version --no-git-tag-version --force ${NEW_LIBRARY_VERSION})
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -79,7 +79,7 @@ runs:
|
|||||||
do
|
do
|
||||||
cd $DIST_DIR/${PROJECT}
|
cd $DIST_DIR/${PROJECT}
|
||||||
|
|
||||||
if [[ ${{ inputs.dry-run }} == false ]]; then
|
if [[ "${{ inputs.dry-run }}" == "false" ]]; then
|
||||||
echo -e "Publish with dry mode for project to GH registry: $PROJECT\n"
|
echo -e "Publish with dry mode for project to GH registry: $PROJECT\n"
|
||||||
echo -e "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n"
|
echo -e "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n"
|
||||||
npm publish --dry-run --tag ${{ inputs.npm_tag }}
|
npm publish --dry-run --tag ${{ inputs.npm_tag }}
|
||||||
@ -104,7 +104,7 @@ runs:
|
|||||||
do
|
do
|
||||||
cd $DIST_DIR/${PROJECT}
|
cd $DIST_DIR/${PROJECT}
|
||||||
|
|
||||||
if [[ ${{ inputs.dry-run }} == false ]]; then
|
if [[ "${{ inputs.dry-run }}" == "false" ]]; then
|
||||||
echo -e "Publish with dry mode for project to NPM registry: $PROJECT\n"
|
echo -e "Publish with dry mode for project to NPM registry: $PROJECT\n"
|
||||||
echo -e "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n"
|
echo -e "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n"
|
||||||
npm publish --dry-run --tag ${{ inputs.npm_tag }}
|
npm publish --dry-run --tag ${{ inputs.npm_tag }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user