Skip to content

Commit

Permalink
workflow debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch committed Feb 14, 2024
1 parent c0fadbe commit 8b01414
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/lynx-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@ jobs:
if: github.event.pull_request.labels.*.name == 'Lynx 🐳'
run: echo "The 'lynx' label is present. Proceeding with Docker build and push operations."

- name: Print the labels
run: echo "The labels are ${{ github.event.pull_request.labels }}"
- name: Get PR labels
id: pr_details
uses: actions/github-script@v5
with:
script: |
const labels = context.payload.pull_request.labels;
console.log("The labels are:");
labels.forEach(label => {
console.log(label.name);
});
- name: Call Docker Workflow if Label is Present
if: github.event.pull_request.labels.*.name == 'Lynx 🐳'
Expand Down

0 comments on commit 8b01414

Please sign in to comment.