Skip to content

Commit

Permalink
if: always() added;
Browse files Browse the repository at this point in the history
  • Loading branch information
Muneeb147 committed Oct 23, 2024
1 parent 211e293 commit 8ee7187
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:

call_final_job:
needs: test # Ensures this job runs after the 'test' job
if: always()
uses: ./.github/workflows/dump_ci_stats.yml # Calls the reusable workflow
with:
workflow_name: "Build Job"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:

call_final_job:
needs: test # Ensures this job runs after the 'test' job
if: always()
uses: ./.github/workflows/dump_ci_stats.yml # Calls the reusable workflow
with:
workflow_name: "Test Job"
Expand Down
4 changes: 0 additions & 4 deletions source/dump-ci-stats-to-gcp-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ const runId = process.env.GITHUB_RUN_ID; // Run ID for this particular wor
// API endpoint to get the workflow run details and jobs
const workflowUrl = `https://api.github.com/repos/${repo}/actions/runs/${runId}`;
const jobsUrl = `https://api.github.com/repos/${repo}/actions/runs/${runId}/jobs`;

console.log("process.env.GCP_CREDENTIALS", process.env.GCP_CREDENTIALS, process.env.GITHUB_TOKEN)
const gcpCredentials = JSON.parse(process.env.GCP_CREDENTIALS);

console.log("GCP CREDS:", gcpCredentials);


// Fetch workflow run-level details
async function fetchWorkflowDetails() {
Expand Down

0 comments on commit 8ee7187

Please sign in to comment.