Skip to content

Commit 04a62b9

Browse files
committed
github actions worlkfow migrated to v4
1 parent c9b925b commit 04a62b9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ jobs:
66
flake8:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/setup-python@v3
9+
- uses: actions/setup-python@v4
10+
with: {python-version: 3}
1011
- name: Installing dependencies
1112
run: |
1213
# installing dependencies
1314
python -m pip install --upgrade pip
1415
pip install --upgrade flake8
15-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1617
with: { path: snapshot }
1718
- name: Executing `flake8`
1819
run: |
@@ -22,7 +23,8 @@ jobs:
2223
pytest:
2324
runs-on: ubuntu-latest
2425
steps:
25-
- uses: actions/setup-python@v3
26+
- uses: actions/setup-python@v4
27+
with: {python-version: 3}
2628
- name: Installing dependencies
2729
run: |
2830
# installing dependencies
@@ -45,12 +47,12 @@ jobs:
4547
raise RuntimeError("bad state")
4648
EOF
4749
chmod +x ./temporary/bin/unshare
48-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v4
4951
with: { path: snapshot }
5052
- name: Installing this package
5153
run: pip install --upgrade ./snapshot
5254
- id: cache
53-
uses: actions/cache@v3
55+
uses: actions/cache@v4
5456
with:
5557
key: oci/examples/nginx/${{ hashFiles('snapshot/examples/nginx') }}
5658
path: temporary/oci
@@ -75,7 +77,7 @@ jobs:
7577
- if: failure()
7678
run: sudo tar --create --directory=temporary -- . | xz > test-context.tar.xz
7779
- if: failure()
78-
uses: actions/upload-artifact@v3
80+
uses: actions/upload-artifact@v4
7981
with:
8082
name: test-context
8183
path: test-context.tar.xz

0 commit comments

Comments
 (0)