Skip to content

Commit

Permalink
[ACA-4649] correctly handle missing gha dry runs
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Mar 7, 2023
1 parent 53d21b8 commit f2e20c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/actions/git-tag/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ runs:
run: |
if [[ "${{ inputs.branch_name }}" == "master" ]]; then
VERSION=$(jq -cr '.version' < package.json)
echo "git tag -a ${VERSION} -m ${VERSION}"
if [[ "${{ inputs.dry-run }}" == "false" ]]; then
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
Expand All @@ -34,4 +34,3 @@ runs:
fi;
fi;
6 changes: 3 additions & 3 deletions .github/actions/publish-libs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ runs:
for PROJECT in "${PROJECTS[@]}"; do
echo "Update ${PROJECT} version to ${NEW_LIBRARY_VERSION}"
if [[ "${{ inputs.dry-run }}" == "false" ]]; then
if [[ "${{ inputs.dry-run }}" != "true" ]]; then
(cd cd $PROJECTS_DIR/${PROJECT} && npm version --allow-same-version --no-git-tag-version --force ${NEW_LIBRARY_VERSION})
fi
done
Expand All @@ -79,7 +79,7 @@ runs:
do
cd $DIST_DIR/${PROJECT}
if [[ "${{ inputs.dry-run }}" == "false" ]]; then
if [[ "${{ inputs.dry-run }}" != "true" ]]; then
echo -e "Publish with dry mode for project to GH registry: $PROJECT\n"
echo -e "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n"
npm publish --dry-run --tag ${{ inputs.npm_tag }}
Expand All @@ -104,7 +104,7 @@ runs:
do
cd $DIST_DIR/${PROJECT}
if [[ "${{ inputs.dry-run }}" == "false" ]]; then
if [[ "${{ inputs.dry-run }}" != "true" ]]; then
echo -e "Publish with dry mode for project to NPM registry: $PROJECT\n"
echo -e "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n"
npm publish --dry-run --tag ${{ inputs.npm_tag }}
Expand Down

0 comments on commit f2e20c3

Please sign in to comment.