.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:
parent
747b718933
commit
9038d4948a
1 changed files with 0 additions and 24 deletions
24
.github/workflows/trigger-gitlab.yml
vendored
24
.github/workflows/trigger-gitlab.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue