diff --git a/.github/workflows/project.yaml b/.github/workflows/project.yaml index d4c633a5..2683b30e 100644 --- a/.github/workflows/project.yaml +++ b/.github/workflows/project.yaml @@ -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.