.github/workflows/trigger-gitlab: remove artifact steps

These are only relevant in the osbuild/osbuild-composer, where the tests
workflow uploads artifacts.
This commit is contained in:
Sanne Raymaekers 2025-02-24 14:08:20 +01:00
parent 747b718933
commit 9038d4948a

View file

@ -55,30 +55,6 @@ jobs:
git checkout "${BRANCH}"
fi
- name: Download artifacts
uses: actions/github-script@v7
with:
script: |
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "PR_STATUS"
})[0];
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
});
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/PR_STATUS.zip`, Buffer.from(download.data));
- name: Unzip artifact
run: unzip PR_STATUS.zip
- name: Push to gitlab
run: |
mkdir -p ~/.ssh