Skip to content

Commit f6b15b2

Browse files
authored
Merge pull request #270 from scipp/ci-action-update
Update GitHub Actions to use newer action versions and skip job status report on main branch.
2 parents aecd2c0 + 6e4f6bf commit f6b15b2

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
packages: ${{ steps.filter.outputs.changes }}
2222
steps:
2323
- uses: actions/checkout@v6
24-
- uses: dorny/paths-filter@v3
24+
- uses: dorny/paths-filter@v4
2525
id: filter
2626
with:
2727
filters: |
@@ -104,7 +104,7 @@ jobs:
104104
environments: docs-${{ matrix.package }}
105105
- name: Build docs
106106
run: pixi run docs-${{ matrix.package }}
107-
- uses: actions/upload-artifact@v4
107+
- uses: actions/upload-artifact@v7
108108
id: artifact-upload-step
109109
with:
110110
name: docs-${{ matrix.package }}
@@ -114,7 +114,7 @@ jobs:
114114
report:
115115
name: Report Job Status
116116
needs: [changes, formatting, test, docs]
117-
if: always()
117+
if: always() && ( github.ref != 'refs/heads/main' ) # This job is for branch protection rule so it doesn't have to run on main branch.
118118
runs-on: ubuntu-24.04
119119
steps:
120120
- name: Report Job Success

.github/workflows/docs-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
with:
5656
branch: gh-pages
5757
folder: gh-pages-site
58-
- uses: actions/upload-artifact@v4
58+
- uses: actions/upload-artifact@v7
5959
with:
6060
name: docs-${{ inputs.package }}
6161
path: packages/${{ inputs.package }}/html

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ jobs:
2929
- uses: actions/checkout@v6
3030
with:
3131
fetch-depth: 0
32-
- uses: actions/setup-python@v5
32+
- uses: actions/setup-python@v6
3333
with:
3434
python-version: "3.11"
3535
- name: Copy LICENSE into package
3636
run: cp LICENSE packages/${{ needs.determine-package.outputs.package }}/LICENSE
3737
- name: Build package
3838
run: pip install build && python -m build packages/${{ needs.determine-package.outputs.package }}
39-
- uses: actions/upload-artifact@v4
39+
- uses: actions/upload-artifact@v7
4040
with:
4141
name: dist
4242
path: packages/${{ needs.determine-package.outputs.package }}/dist/
@@ -49,7 +49,7 @@ jobs:
4949
permissions:
5050
id-token: write
5151
steps:
52-
- uses: actions/download-artifact@v4
52+
- uses: actions/download-artifact@v8
5353
with:
5454
name: dist
5555
path: dist/
@@ -88,7 +88,7 @@ jobs:
8888
with:
8989
branch: gh-pages
9090
folder: gh-pages-site
91-
- uses: actions/upload-artifact@v4
91+
- uses: actions/upload-artifact@v7
9292
with:
9393
name: docs_html
9494
path: packages/${{ needs.determine-package.outputs.package }}/html
@@ -100,7 +100,7 @@ jobs:
100100
permissions:
101101
contents: write
102102
steps:
103-
- uses: actions/download-artifact@v4
103+
- uses: actions/download-artifact@v8
104104
with:
105105
name: docs_html
106106
path: docs_html

0 commit comments

Comments
 (0)