Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Apr 4, 2024
1 parent bf89370 commit 7b30e6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 72 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/copy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
echo_job:
runs-on: ubuntu-latest
outputs:
workflow_run_id: ${{ github.run_id }}
run_attempt: ${{ github.run_attempt }}
steps:
- name: Echo abc
Expand Down Expand Up @@ -57,16 +56,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ARTIFACT_CONTENT: ${{ steps.read_artifact.outputs.content }}
COMMIT_SHA: ${{ github.sha }}
WORKFLOW_RUN_ID: ${{ needs.echo_job.outputs.workflow_run_id }}
WORKFLOW_RUN_ID: ${{ github.run_id }}
REPO_NAME: ${{ github.repository }}
ATTEMPTS: ${{ needs.echo_job.outputs.run_attempt }}
ATTEMPTS: ${{ github.run_attempt }}
run: |
# Assuming you have the job ID from somewhere or it's not needed anymore
# If you still need to fetch the job ID, you would insert the logic here
JOB_ID=$(curl -s \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs" | jq -r '.jobs[] | select(.name == "echo_job") | .id')
JOB_ID=$(gh api repos/$REPO_NAME/actions/runs/$WORKFLOW_RUN_ID/jobs --jq '.jobs[] | select(.name == "echo_job") | .id')
# JOB_ID=$(curl -s \
# -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
# -H "Accept: application/vnd.github.v3+json" \
# "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs" | jq -r '.jobs[] | select(.name == "echo_job") | .id')
CONTENT_JSON=$(echo $ARTIFACT_CONTENT | jq .)
CUSTOM_CONTEXT=$(echo $CONTENT_JSON | jq -r .context)
CUSTOM_DESCRIPTION=$(echo $CONTENT_JSON | jq -r .description)
Expand Down
65 changes: 0 additions & 65 deletions .github/workflows/status.yml

This file was deleted.

0 comments on commit 7b30e6a

Please sign in to comment.