Skip to content

Commit 042cd03

Browse files
authored
feat(ci): use sha instead of tag on steps (#19)
1 parent 82d0acf commit 042cd03

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/github-pages.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
3030
with:
3131
submodules: recursive
3232

3333
- name: Setup Pages
3434
id: pages
35-
uses: actions/configure-pages@v5
35+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b #v5.0.0
3636

3737
- name: Upload artifact
38-
uses: actions/upload-pages-artifact@v3
38+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b #v4.0.0
3939
with:
4040
path: docs/
4141

@@ -48,4 +48,4 @@ jobs:
4848
steps:
4949
- name: Deploy to GitHub Pages
5050
id: deployment
51-
uses: actions/deploy-pages@v4
51+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e #v4.0.5

.github/workflows/update.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
1717

1818
- name: Download swagger.json from tibiadata-api-go release
19-
uses: robinraju/release-downloader@v1.12
19+
uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 #v1.12
2020
with:
2121
repository: TibiaData/tibiadata-api-go
2222
tag: ${{ github.event.client_payload.tag_name }}
@@ -43,7 +43,7 @@ jobs:
4343
echo "${contents}" > docs/swagger-dev.json
4444
4545
- name: Commit docs/swagger files to repo
46-
uses: EndBug/add-and-commit@v9
46+
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 #v9.1.4
4747
with:
4848
add: docs/swagger.json docs/swagger-dev.json
4949
message: automatic update of docs/swagger files (release ${{ github.event.client_payload.tag_name }})
@@ -53,6 +53,6 @@ jobs:
5353
needs: update
5454
steps:
5555
- name: Trigger github-pages workflow
56-
uses: peter-evans/repository-dispatch@v3
56+
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 #v3.0.0
5757
with:
5858
event-type: tibiadata-api-docs-deploy

0 commit comments

Comments
 (0)