Skip to content

Commit

Permalink
Githubactions: Replace deprecated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed May 29, 2024
1 parent 3869102 commit 5fd0626
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
fi
- name: clone the Yubico/yubihsm-shell repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: yubihsm-shell

Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:

- name: upload artifacts for the test job
if: ${{ matrix.upload_for_test == 'true' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "${{ env.ARTIFACT_NAME }}"
path: yubihsm-shell.tar.gz
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
steps:

- name: clone the Yubico/yubihsm-shell repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: yubihsm-shell

Expand Down Expand Up @@ -287,7 +287,7 @@ jobs:

- name: upload artifacts for the test job
if: ${{ matrix.upload_for_test == 'true' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "${{ env.ARTIFACT_NAME }}"
path: yubihsm-shell.tar.gz
Expand All @@ -308,7 +308,7 @@ jobs:
run: brew install gengetopt help2man libedit

- name: clone the Yubico/yubihsm-shell repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: yubihsm-shell

Expand Down Expand Up @@ -377,7 +377,7 @@ jobs:
echo "ARTIFACT_NAME=yubihsm-shell_${ESCAPED_IMAGE}_${CC}" >> $GITHUB_ENV
- name: download artifacts from the build job
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: "${{ env.ARTIFACT_NAME }}"

Expand Down Expand Up @@ -409,7 +409,7 @@ jobs:
echo "DEFAULT_CONNECTOR_URL=$DEFAULT_CONNECTOR_URL" >> $GITHUB_ENV
- name: clone the YubicoLabs/pkcs11test repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: YubicoLabs/pkcs11test
path: pkcs11test
Expand Down Expand Up @@ -442,7 +442,7 @@ jobs:
fi
- name: clone the YubicoLabs/python-pkcs11tester repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: YubicoLabs/python-pkcs11tester
path: python-pkcs11tester
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
jq
- name: clone the Yubico/yubihsm-shell repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: yubihsm-shell

Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
./opensc_test.sh $GITHUB_WORKSPACE/yubihsm-shell/build/pkcs11/yubihsm_pkcs11.so
- name: clone the YubicoLabs/yubihsm_sunpkcs11_tests repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: YubicoLabs/yubihsm_sunpkcs11_tests
path: yubihsm_sunpkcs11_tests
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
VERSION: 2.5.0
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install prerequisites
run: |
set -x
Expand All @@ -26,7 +26,7 @@ jobs:
mkdir $GITHUB_WORKSPACE/artifact
mv $GITHUB_WORKSPACE/yubihsm-shell-$VERSION.tar.gz $GITHUB_WORKSPACE/artifact/
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: yubihsm-shell-src
path: artifact
Expand All @@ -47,7 +47,7 @@ jobs:
VERSION: 2.5.0
steps:
- name: Download source from source job
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: yubihsm-shell-src

Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: yubihsm-shell-${{ matrix.arch }}
path: artifact
Expand All @@ -100,7 +100,7 @@ jobs:
SO_VERSION: 2
steps:
- name: Download source from source job
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: yubihsm-shell-src

Expand All @@ -125,7 +125,7 @@ jobs:
cp -r $YHSHELL_SRC_DIR/resources/release/macos/yubihsm-shell-darwin-$ARCH-$VERSION $GITHUB_WORKSPACE/artifact/
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: yubihsm-shell-darwin-${{ matrix.arch }}64
path: artifact
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
jq
- name: clone the Yubico/yubihsm-shell repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: yubihsm-shell

Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
- name: upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "yubihsm-shell-${{ env.PLATFORM }}-amd64"
path: ${{ env.PLATFORM }}
Expand All @@ -284,7 +284,7 @@ jobs:
steps:

- name: clone the Yubico/yubihsm-shell repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: yubihsm-shell

Expand Down Expand Up @@ -377,7 +377,7 @@ jobs:
- name: upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "yubihsm-shell-${{ env.PLATFORM }}-amd64"
path: ${{ env.PLATFORM }}

0 comments on commit 5fd0626

Please sign in to comment.