Skip to content

Commit 26b7060

Browse files
committed
WIP: replace checkout again
This time, replacing checkout with a few more explicit commands
1 parent 6f29e82 commit 26b7060

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/dev-manual.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ jobs:
77
name: deploy-theme
88
runs-on: [self-hosted, linux, stage]
99
steps:
10+
- name: setup-git
11+
run: |
12+
git config --global user.name "github-actions"
13+
git config --global user.email "[email protected]"
14+
- name: clone-repo
15+
run: |
16+
git clone https://github.com/${{ github.repository }} repo
17+
cd repo
18+
git checkout ${{ github.sha }}
1019
- name: deploy-theme
1120
run: |
12-
cd "$GITHUB_WORKSPACE"
13-
git clone "https://github.com/$GITHUB_REPOSITORY.git" .
14-
git checkout "$GITHUB_SHA"
1521
chown -R :client .
1622
chmod -R g+w .
1723
make deploy

0 commit comments

Comments
 (0)