Skip to content

Commit

Permalink
Checkout the triggering branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwcarlson committed Oct 27, 2023
1 parent 51e10f3 commit aa491b7
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,27 @@ jobs:
upsun org:info -o $TEST_ORG_NAME name
################################################################################################
# B. Setting up test project.
- name: "[PROJECT] 1. Create a project in the test org."
run: |
echo "::notice::Create a project in the test org."
upsun project:create -o $TEST_ORG_NAME \
--title "$TEST_PROJECT_TITLE" \
--region $TEST_PROJECT_REGION \
--default-branch $TEST_PROJECT_DEFAULT_BRANCH \
--no-set-remote \
-y
# - name: "[PROJECT] 1. Create a project in the test org."
# run: |
# echo "::notice::Create a project in the test org."
# upsun project:create -o $TEST_ORG_NAME \
# --title "$TEST_PROJECT_TITLE" \
# --region $TEST_PROJECT_REGION \
# --default-branch $TEST_PROJECT_DEFAULT_BRANCH \
# --no-set-remote \
# -y
- name: "[PROJECT] 2. Verify local repo."
run: |
echo "::notice::Verifying local repo."
ls -a
git branch
echo ${{github.ref_name}}
- name: "[PROJECT] 3. Set remote."
run: |
echo "::notice::Setting remote for the project locally."
TEST_PROJECT_ID=$(upsun project:list -o $TEST_ORG_NAME --title "$TEST_PROJECT_TITLE" --pipe)
upsun project:set-remote $TEST_PROJECT_ID
echo ${{ github.base_ref }}
git checkout ${{ github.base_ref }}
# - name: "[PROJECT] 3. Set remote."
# run: |
# echo "::notice::Setting remote for the project locally."
# TEST_PROJECT_ID=$(upsun project:list -o $TEST_ORG_NAME --title "$TEST_PROJECT_TITLE" --pipe)
# upsun project:set-remote $TEST_PROJECT_ID

################################################################################################
# C. First deploy.
Expand Down

0 comments on commit aa491b7

Please sign in to comment.