Skip to content

Commit

Permalink
Merge branch 'test2' into test3
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Apr 5, 2024
2 parents d6c465c + 3f59387 commit 841da49
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
const fs = require('fs');
const path = require('path');
const artifactName = 'gh-status';
const artifactsPath = 'downloaded_artifacts';
const allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
Expand All @@ -60,12 +59,11 @@ jobs:
});
// Write the artifact to a file
const artifactPath = path.join(artifactsPath, `${artifactName}.zip`);
fs.writeFileSync(artifactPath, Buffer.from(download.data));
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/${artifactName}.zip`/, Buffer.from(download.data));
- name: 'Unzip artifact'
if: ${{ needs.process_artifacts.outputs.artifact_downloaded == 'true' }}
run: unzip './downloaded_artifacts/gh-status.zip'
run: unzip 'gh-status.zip'

- name: Create status
if: ${{ needs.process_artifacts.outputs.artifact_downloaded == 'true' }}
Expand All @@ -78,7 +76,7 @@ jobs:
retries: 3
script: |
// Load the JSON content
const contentJSON = require('./downloaded_artifacts/gh-status.json');
const contentJSON = require('./gh-status.json');
const {
job_name: JOB_NAME,
context: CUSTOM_CONTEXT = 'Custom CI Status Check',
Expand Down

0 comments on commit 841da49

Please sign in to comment.