-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from HerodotusDev/fix/workflow
clone issue
- Loading branch information
Showing
1 changed file
with
3 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,23 +29,14 @@ jobs: | |
run: | | ||
cargo install --locked -f --path cli/ | ||
- name: Clone and setup hdp-test repository | ||
- name: Clone hdp-test repository | ||
run: | | ||
git clone https://x-access-token:${{ secrets.REPO_ACCESS_TOKEN }}@github.com/HerodotusDev/hdp-test.git hdp-test | ||
git clone -b ${{ github.ref_name }} https://x-access-token:${{ secrets.REPO_ACCESS_TOKEN }}@github.com/HerodotusDev/hdp-test.git hdp-test || git clone https://x-access-token:${{ secrets.REPO_ACCESS_TOKEN }}@github.com/HerodotusDev/hdp-test.git hdp-test | ||
cd hdp-test | ||
git checkout -b ${{ github.ref_name }} || git checkout ${{ github.ref_name }} | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
# Check if branch exists on remote | ||
if git ls-remote --exit-code --heads origin ${{ github.ref_name }} >/dev/null 2>&1; then | ||
echo "Branch ${{ github.ref_name }} exists on remote, checking out" | ||
git checkout ${{ github.ref_name }} | ||
else | ||
echo "Branch ${{ github.ref_name }} does not exist on remote, creating from main" | ||
git checkout main | ||
git checkout -b ${{ github.ref_name }} | ||
fi | ||
- name: Generate .env file | ||
run: | | ||
cd hdp-test | ||
|