Skip to content

Commit

Permalink
wip: change order of workflow root steps
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Jan 16, 2024
1 parent 0ca85d1 commit bf931b9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/actions/setup-base/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@ runs:
shell: bash
run: |
- name: Checkout to workspace
shell: bash
run: |
rm -rf ${{ steps.base.outputs.WORKSPACE_ROOT }}/*
rm -rf ${{ steps.base.outputs.WORKSPACE_ROOT }}/*.*
git clone -b ${{ github.event.pull_request.head.sha || github.head_ref || github.ref_name || github.ref }} https://github.com/${{ github.repository }}.git ${{ steps.base.outputs.WORKSPACE_ROOT }}
ls ${{ steps.base.outputs.WORKSPACE_ROOT }}
- name: Set workspace root
id: workspace_root
shell: bash
run: |
WORKSPACE_ROOT=$GITHUB_WORKSPACE/repo
echo "WORKSPACE_ROOT=$WORKSPACE_ROOT" | tee -a $GITHUB_OUTPUT
- name: Checkout to workspace
shell: bash
run: |
git clone -b ${{ github.event.pull_request.head.sha || github.head_ref || github.ref_name || github.ref }} https://github.com/${{ github.repository }}.git ${{ steps.base.outputs.WORKSPACE_ROOT }}
ls ${{ steps.base.outputs.WORKSPACE_ROOT }}

0 comments on commit bf931b9

Please sign in to comment.