From 285944dcab9713d3acf59f65137de31108bf2088 Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Sat, 15 Jan 2022 08:46:13 +0100 Subject: [PATCH] use actions/checkout --- .github/workflows/check-git-apply.yaml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check-git-apply.yaml b/.github/workflows/check-git-apply.yaml index 59ba2ee2..8bbb93dc 100644 --- a/.github/workflows/check-git-apply.yaml +++ b/.github/workflows/check-git-apply.yaml @@ -33,15 +33,23 @@ jobs: BRANCH=$(curl https://github.com/uazo/bromite/branch_commits/$RTAG | ./pup -p li.branch a text{}) echo "BRANCH=$BRANCH" >> $GITHUB_ENV - - name: Download bromite sources - run: | - mkdir bromite && cd bromite - git init - git remote add origin https://github.com/uazo/bromite - git fetch origin $RTAG - git reset --hard FETCH_HEAD - git branch -m $BRANCH - cd .. + - name: Checkout 'uazo/bromite' + uses: actions/checkout@v2 + with: + repository: 'uazo/bromite' + ref: ${{ github.event.inputs.rtag }} + path: 'bromite' + fetch-depth: 1 + +# - name: Download bromite sources +# run: | +# mkdir bromite && cd bromite +# git init +# git remote add origin https://github.com/uazo/bromite +# git fetch origin $RTAG +# git reset --hard FETCH_HEAD +# git branch -m $BRANCH +# cd .. - name: Download chromium sources run: |