jalantechnologies / github-ci

CI/CD pipeline for GitHub
MIT License
0 stars 1 forks source link

(feat) Add support for tagging kubernetes resources with workflow attempt info #33

Closed bbbneo333 closed 1 year ago

bbbneo333 commented 1 year ago

To keep track of workflow attempts, add support for tagging kubernetes resources with gh/workflow-run with value - ${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}

See how to pass labels within the workflow here - https://github.com/jalantechnologies/github-ci/blob/1cd5d7744c99a43b536f784ff3224ff1df76f1d2/.github/workflows/ci.yml#L245C26-L245C45

Read more about these values here - https://docs.github.com/en/actions/learn-github-actions/contexts#github-context