Skip to content

Commit cf692d6

Browse files
committed
Bump versions of GitHub Actions
1 parent a925b42 commit cf692d6

File tree

4 files changed

+33
-45
lines changed

4 files changed

+33
-45
lines changed

Diff for: .github/workflows/build_and_test.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
name: Python build and test
43

54
"on":
@@ -35,16 +34,16 @@ jobs:
3534
- 6379:6379
3635

3736
steps:
38-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3938
- name: Set up Python ${{ matrix.python-version }}
40-
uses: actions/setup-python@v3
39+
uses: actions/setup-python@v5
4140
with:
4241
python-version: ${{ matrix.python-version }}
4342

4443
# Pin micromamba version because of following issue:
4544
# https://github.com/mamba-org/setup-micromamba/issues/225
4645
- name: Set up Conda environment
47-
uses: mamba-org/setup-micromamba@v1
46+
uses: mamba-org/setup-micromamba@v2
4847
with:
4948
create-args: >-
5049
python=${{ matrix.python-version }}

Diff for: .github/workflows/bump_version_and_tag.yml

+14-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
# yamllint disable rule:line-length
43

54
name: Create/Update Tag
@@ -13,25 +12,25 @@ jobs:
1312
create-version-tag:
1413
runs-on: ubuntu-latest
1514
steps:
16-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1716
with:
1817
token: ${{ secrets.CI_TOKEN }}
1918
- name: Set up Python 3.10
20-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2120
with:
2221
python-version: "3.10"
2322
- name: Update version
2423
id: update-version
2524
run: |
26-
pip install --upgrade pip
27-
pip install poetry
28-
poetry version minor
29-
git config --global user.email "[email protected]"
30-
git config --global user.name "Marcus Oskarsson"
31-
git add -A
32-
git commit -m "[skip ci] Bumped minor version"
33-
git push -f
34-
poetry build
25+
pip install --upgrade pip
26+
pip install poetry
27+
poetry version minor
28+
git config --global user.email "[email protected]"
29+
git config --global user.name "Marcus Oskarsson"
30+
git add -A
31+
git commit -m "[skip ci] Bumped minor version"
32+
git push -f
33+
poetry build
3534
- name: Publish package to PyPI
3635
id: publish-pacakge
3736
run: |
@@ -45,7 +44,7 @@ jobs:
4544
echo ::set-output name=tag_name::v$(python -c 'import toml; print(toml.load("./pyproject.toml")["tool"]["poetry"]["version"])')
4645
- name: Check tag exists
4746
id: check-tag-exists
48-
uses: actions/github-script@v6
47+
uses: actions/github-script@v7
4948
env:
5049
TAG: ${{ steps.set-tag.outputs.tag_name }}
5150
with:
@@ -70,7 +69,7 @@ jobs:
7069
core.setOutput('exists', exists);
7170
7271
- name: Update tag
73-
uses: actions/github-script@v6
72+
uses: actions/github-script@v7
7473
if: steps.check-tag-exists.outputs.exists == 'true'
7574
env:
7675
TAG: ${{ steps.set-tag.outputs.tag_name }}
@@ -85,7 +84,7 @@ jobs:
8584
})
8685
8786
- name: Create tag
88-
uses: actions/github-script@v6
87+
uses: actions/github-script@v7
8988
if: steps.check-tag-exists.outputs.exists != 'true'
9089
env:
9190
TAG: ${{ steps.set-tag.outputs.tag_name }}

Diff for: .github/workflows/pages.yaml

+6-15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
3-
42
name: "Pages"
53

64
concurrency:
@@ -11,13 +9,10 @@ concurrency:
119
push: null
1210

1311
jobs:
14-
1512
"pages-build":
16-
1713
runs-on: "ubuntu-22.04"
1814

1915
services:
20-
2116
# The Redis server is necessary to run the app,
2217
# which is necessary to get the Flask routes with `autoflask` directives
2318
redis:
@@ -31,9 +26,8 @@ jobs:
3126
- "6379:6379/tcp"
3227

3328
steps:
34-
3529
- name: "Checkout"
36-
uses: "actions/checkout@v4" # tested with v4.0.0
30+
uses: "actions/checkout@v4" # tested with v4.0.0
3731
with:
3832
# With shallow clone the "Last updated" timestamp can not get computed
3933
# See "Caveats" at https://pypi.org/project/sphinx-last-updated-by-git
@@ -43,7 +37,7 @@ jobs:
4337
# Pin micromamba version because of following issue:
4438
# https://github.com/mamba-org/setup-micromamba/issues/225
4539
- name: "Setup conda environment with micromamba"
46-
uses: "mamba-org/setup-micromamba@v1" # tested with v1.4.4
40+
uses: "mamba-org/setup-micromamba@v2" # tested with v2.0.1
4741
with:
4842
environment-file: "conda-environment.yml"
4943
micromamba-version: 1.5.10-0
@@ -58,12 +52,11 @@ jobs:
5852
# This could potentially be run only when we intent to deploy...
5953
# ...but it can be useful to have the artifact for debugging
6054
# if: "github.ref_name == github.event.repository.default_branch"
61-
uses: "actions/upload-pages-artifact@v2" # tested with v2.0.0
55+
uses: "actions/upload-pages-artifact@v3" # tested with v3.0.1
6256
with:
6357
path: "docs/build/html"
6458

6559
"pages-deploy":
66-
6760
if: "github.ref_name == github.event.repository.default_branch"
6861

6962
environment:
@@ -80,13 +73,11 @@ jobs:
8073
runs-on: "ubuntu-22.04"
8174

8275
steps:
83-
8476
- name: "Setup GitHub Pages"
85-
uses: "actions/configure-pages@v3" # tested with v3.0.6
77+
uses: "actions/configure-pages@v5" # tested with v5.0.0
8678

8779
- name: "Deploy to GitHub Pages"
8880
id: "deployment"
89-
uses: "actions/deploy-pages@v2" # tested with 2.0.4
90-
81+
uses: "actions/deploy-pages@v4" # tested with 4.0.5
9182

92-
... # EOF
83+
... # EOF

Diff for: .github/workflows/ui.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
# yamllint disable rule:line-length
33

4-
54
# Pin micromamba version to `1.5.10-0` because of following issue:
65
# https://github.com/mamba-org/setup-micromamba/issues/225
76

@@ -21,18 +20,18 @@ jobs:
2120

2221
steps:
2322
- name: Checkout
24-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2524

2625
- name: Set up Conda environment
27-
uses: mamba-org/setup-micromamba@v1
26+
uses: mamba-org/setup-micromamba@v2
2827
with:
2928
micromamba-version: 1.5.10-0
3029
environment-file: conda-environment.yml
3130
cache-environment: true
3231
post-cleanup: "all"
3332

3433
- name: Cache UI dependencies
35-
uses: actions/cache@v3
34+
uses: actions/cache@v4
3635
with:
3736
path: |
3837
~/setup-pnpm/node_modules/.bin/store
@@ -55,18 +54,18 @@ jobs:
5554

5655
steps:
5756
- name: Checkout
58-
uses: actions/checkout@v3
57+
uses: actions/checkout@v4
5958

6059
- name: Set up Conda environment
61-
uses: mamba-org/setup-micromamba@v1
60+
uses: mamba-org/setup-micromamba@v2
6261
with:
6362
micromamba-version: 1.5.10-0
6463
environment-file: conda-environment.yml
6564
cache-environment: true
6665
post-cleanup: "all"
6766

6867
- name: Cache UI dependencies
69-
uses: actions/cache@v3
68+
uses: actions/cache@v4
7069
with:
7170
path: |
7271
~/setup-pnpm/node_modules/.bin/store
@@ -106,10 +105,10 @@ jobs:
106105

107106
steps:
108107
- name: Checkout
109-
uses: actions/checkout@v3
108+
uses: actions/checkout@v4
110109

111110
- name: Set up Conda environment
112-
uses: mamba-org/setup-micromamba@v1
111+
uses: mamba-org/setup-micromamba@v2
113112
with:
114113
micromamba-version: 1.5.10-0
115114
environment-file: conda-environment.yml
@@ -120,7 +119,7 @@ jobs:
120119
run: "${MAMBA_EXE} run --name mxcubeweb poetry install --only main"
121120

122121
- name: Cache UI dependencies
123-
uses: actions/cache@v3
122+
uses: actions/cache@v4
124123
with:
125124
path: |
126125
~/setup-pnpm/node_modules/.bin/store
@@ -144,7 +143,7 @@ jobs:
144143
env:
145144
CYPRESS_BASE_URL: http://127.0.0.1:8081
146145

147-
- uses: actions/upload-artifact@v3
146+
- uses: actions/upload-artifact@v4
148147
if: failure()
149148
with:
150149
name: debug

0 commit comments

Comments
 (0)