Skip to content

Commit

Permalink
chore: 🤖 checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Jul 5, 2024
1 parent 7c8e8ac commit 630c836
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/support-service-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
port: ${{ secrets.SUPPORT_SERVICE_PORT }}
envs: SUPPORT_SERVICE_PATHNAME,SUPPORT_SERVICE_SYSTEMD_NAME
script: |
checkout_branch="origin/chore/support-cicd-service-update"
if ! cd "$SUPPORT_SERVICE_PATHNAME"; then
echo "👹 Oops! Failed to change work directory"
exit 1
Expand All @@ -37,7 +38,7 @@ jobs:
# TODO: Should use default branch not hard-typed
# due to testing, develop is hard typed here
if ! git fetch origin && git reset --hard origin/chore/support-cicd-service-update; then
if ! git fetch origin && git reset --hard "$checkout_branch" && git checkout "$checkout_branch"; then
echo "👹 Oops! Failed to change work directory"
exit 1
fi
Expand Down

0 comments on commit 630c836

Please sign in to comment.