Skip to content

Commit a873d7e

Browse files
committed
Pin hashes and only run on releases
1 parent 5bc2477 commit a873d7e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/generate-references.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: "Generate References"
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
release:
5+
types: [published]
76
workflow_dispatch:
87

98
jobs:
@@ -14,13 +13,13 @@ jobs:
1413
runs-on: ubuntu-latest
1514
steps:
1615
- name: Checkout the repository
17-
uses: actions/checkout@v4
16+
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
1817
with:
1918
fetch-depth: 0
2019
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
2120

2221
- name: Set up Python
23-
uses: actions/setup-python@v5
22+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
2423
with:
2524
python-version: 3.11.11
2625

@@ -46,7 +45,7 @@ jobs:
4645
echo "No new references generated in references directory"
4746
fi
4847
49-
- uses: stefanzweifel/git-auto-commit-action@v6
48+
- uses: stefanzweifel/git-auto-commit-action@b3e3f72439fc3af08948f989a19a825463598a
5049
if: steps.changes.outputs.changed == 'true'
5150
with:
5251
commit_message: "Update generated references"

0 commit comments

Comments
 (0)