From 9038d4948a97153f2243df9aaab6bd436f355734 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Mon, 24 Feb 2025 14:08:20 +0100 Subject: [PATCH] .github/workflows/trigger-gitlab: remove artifact steps These are only relevant in the osbuild/osbuild-composer, where the tests workflow uploads artifacts. --- .github/workflows/trigger-gitlab.yml | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/.github/workflows/trigger-gitlab.yml b/.github/workflows/trigger-gitlab.yml index e4b97c47..fe267ed8 100644 --- a/.github/workflows/trigger-gitlab.yml +++ b/.github/workflows/trigger-gitlab.yml @@ -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