Skip to content

Commit fd4d29b

Browse files
authored
Merge pull request #609 from pllim/action-ver-hash
MNT: Use hash for Action workflow versions and update if needed
2 parents bc659a3 + 3f4ed50 commit fd4d29b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
name: "Execute and convert the notebooks to HTML"
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
1818

1919
- name: Set up Python
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
2121
with:
2222
python-version: 3.12
2323

@@ -40,13 +40,13 @@ jobs:
4040
run: |
4141
echo "::set-output name=artifactName::rendered-tutorials"
4242
43-
- uses: actions/upload-artifact@v4
43+
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
4444
with:
4545
name: ${{ steps.nameartifact.outputs.artifactName }}
4646
path: _build
4747

4848
- name: Dispatch Learn Astropy deployment
49-
uses: peter-evans/repository-dispatch@26b39ed245ab8f31526069329e112ab2fb224588
49+
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
5050
if: ${{ (github.event_name == 'push') && (github.ref == 'refs/heads/main') && (github.repository == 'astropy/astropy-tutorials')}}
5151
with:
5252
token: ${{ secrets.DISPATCH_GITHUB_TOKEN }}

.github/workflows/prs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
name: "Execute and convert the notebooks to HTML"
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Set up Python
24-
uses: actions/setup-python@v5
24+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
2525
with:
2626
python-version: 3.12
2727

@@ -52,7 +52,7 @@ jobs:
5252
run: |
5353
echo "::set-output name=artifactName::rendered-tutorials"
5454
55-
- uses: actions/upload-artifact@v4
55+
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
5656
with:
5757
name: ${{ steps.nameartifact.outputs.artifactName }}
5858
path: _build

.github/workflows/test-scripts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
runs-on: ubuntu-latest
2020
if: contains(github.event.pull_request.labels.*.name, 'infrastructure')
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
2323
with:
2424
fetch-depth: 0
2525

2626
- name: Set up Python
27-
uses: actions/setup-python@v4.6.0
27+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
2828
with:
2929
python-version: 3.9
3030

0 commit comments

Comments
 (0)