Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add outputs tests to download artifact action tests #304

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/test-download-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,38 @@ jobs:
run: |
cat artifact/sha
echo $GITHUB_SHA

download-outputs:
name: Download outputs should not be empty
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Download
id: download
uses: ./download-artifacts
with:
workflow: upload-test-artifacts.yml

- name: Test artifact-build-commit
env:
_ARTIFACT_BUILD_COMMIT: ${{ steps.download.outputs.artifact-build-commit }}
run: |
ls -atlh
echo $_ARTIFACT_BUILD_COMMIT
if [[-z "$_ARTIFACT_BUILD_COMMIT"]]; then
echo "artifact-build-commit is empty"
exit 1
fi

- name: Test artifact-build-branch
env:
_ARTIFACT_BUILD_BRANCH: ${{ steps.download.outputs.artifact-build-branch }}
run: |
ls -atlh
echo $_ARTIFACT_BUILD_BRANCH
if [[-z "$_ARTIFACT_BUILD_BRANCH"]]; then
echo "artifact-build-branch is empty"
exit 1
fi
michalchecinski marked this conversation as resolved.
Show resolved Hide resolved
Loading