Skip to content

Commit b8a2fa2

Browse files
committed
Use checked out action for workflows
1 parent ad0c34f commit b8a2fa2

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.github/workflows/benchmark.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,22 @@ jobs:
5858
echo "NETLIFY_PROD_URL: ${{ steps.netlify.outputs.NETLIFY_PROD_URL }}"
5959
6060
deploy-draft-new:
61-
name: draft via South-Paw/action-netlify-cli@main
61+
name: draft via South-Paw/action-netlify-cli
6262
runs-on: ubuntu-latest
6363
needs:
6464
- deploy-draft-original
6565
- deploy-prod-original
6666
steps:
67+
- name: Checkout repository
68+
uses: actions/checkout@v3
69+
6770
- name: Generate HTML document
6871
run: |
6972
mkdir -p example
7073
echo -e "<pre>$(date -u)\n$GITHUB_SHA\n$GITHUB_REF</pre>" > example/index.html
7174
7275
- name: Deploy draft to Netlify
73-
uses: South-Paw/action-netlify-cli@main
76+
uses: ./
7477
id: netlify
7578
with:
7679
args: 'deploy --json --dir \"./example\" --message \"draft [${{ github.sha }}]\"'
@@ -86,19 +89,22 @@ jobs:
8689
echo "NETLIFY_PROD_URL: ${{ steps.netlify.outputs.NETLIFY_PROD_URL }}"
8790
8891
deploy-prod-new:
89-
name: production via South-Paw/action-netlify-cli@main
92+
name: production via South-Paw/action-netlify-cli
9093
runs-on: ubuntu-latest
9194
needs:
9295
- deploy-draft-original
9396
- deploy-prod-original
9497
steps:
98+
- name: Checkout repository
99+
uses: actions/checkout@v3
100+
95101
- name: Generate HTML document
96102
run: |
97103
mkdir -p example
98104
echo -e "<pre>$(date -u)\n$GITHUB_SHA\n$GITHUB_REF</pre>" > example/index.html
99105
100106
- name: Deploy to Netlify
101-
uses: South-Paw/action-netlify-cli@main
107+
uses: ./
102108
id: netlify
103109
with:
104110
args: 'deploy --json --prod --dir \"./example\" --message \"production [${{ github.sha }}]\"'

.github/workflows/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ jobs:
1111
name: draft
1212
runs-on: ubuntu-latest
1313
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
1417
- name: Generate HTML document
1518
run: |
1619
mkdir -p example
1720
echo -e "<pre>$(date -u)\n$GITHUB_SHA\n$GITHUB_REF</pre>" > example/index.html
1821
1922
- name: Deploy draft to Netlify
20-
uses: South-Paw/action-netlify-cli@main
23+
uses: ./
2124
id: netlify
2225
with:
2326
args: 'deploy --json --dir \"./example\" --message \"draft [${{ github.sha }}]\"'
@@ -36,13 +39,16 @@ jobs:
3639
name: production
3740
runs-on: ubuntu-latest
3841
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v3
44+
3945
- name: Generate HTML document
4046
run: |
4147
mkdir -p example
4248
echo -e "<pre>$(date -u)\n$GITHUB_SHA\n$GITHUB_REF</pre>" > example/index.html
4349
4450
- name: Deploy to Netlify
45-
uses: South-Paw/action-netlify-cli@main
51+
uses: ./
4652
id: netlify
4753
with:
4854
args: 'deploy --prod --json --dir \"./example\" --message \"production [${{ github.sha }}]\"'

0 commit comments

Comments
 (0)