Skip to content

Commit

Permalink
Fix actions compatibility with github runner
Browse files Browse the repository at this point in the history
  • Loading branch information
sergcpp committed Dec 31, 2023
1 parent dad9948 commit 5931551
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ runs:
using: 'composite'
steps:
- run: |
REPO_URL="${{ env.GITHUB_SERVER_URL }}/${{ env.GITHUB_REPOSITORY }}"
REPO_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"
cd ../..
mkdir -p builds
cd builds
Expand All @@ -12,13 +12,13 @@ runs:
cd Ray
git remote set-url origin $REPO_URL
git fetch --all
git checkout -f ${{ env.GITHUB_REF_NAME }}
git reset --hard origin/${{ env.GITHUB_REF_NAME }}
git checkout -f $GITHUB_REF_NAME
git reset --hard origin/$GITHUB_REF_NAME
git clean -fdx
git fetch --tags
else
echo "Clone new repository"
git clone $REPO_URL -b ${{ env.GITHUB_REF_NAME }}
git clone $REPO_URL -b $GITHUB_REF_NAME
cd Ray
git fetch --tags
fi
Expand Down

0 comments on commit 5931551

Please sign in to comment.