Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release-action-node dry run failures due to bad && pipelines #34

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion release-action-node/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ else
npm install
npm version "$VERSION"
fi
[[ "${DRY_RUN,,}" == "false" ]] && git push && git push --tags
if [[ "${DRY_RUN,,}" == "false" ]]; then
git push && git push --tags
else
echo "[dry run] Push new version" 1>&2
fi
6 changes: 5 additions & 1 deletion release-action-node/update-release-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ set -euo pipefail
package_version="$(jq -r .version < package.json)"
release_branch="v${package_version//.*/}"
git checkout -b "${release_branch}"
[[ "${DRY_RUN,,}" == "false" ]] && git push -u origin "${release_branch}"
if [[ "${DRY_RUN,,}" == "false" ]]; then
git push -u origin "${release_branch}"
else
echo "[dry run] Push changes to ${release_branch}" 1>&2
fi
6 changes: 5 additions & 1 deletion release-action-node/update-without-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ git_changes="$(git status --porcelain -- dist || true)"
if [ -n "$git_changes" ]; then
git add -- dist
git commit -m "Update compiled action"
[[ "${DRY_RUN,,}" == "false" ]] && git push
if [[ "${DRY_RUN,,}" == "false" ]]; then
git push
else
echo "[dry run] Push changes" 1>&2
fi
fi
Loading