Skip to content

Commit

Permalink
simplified approach to label triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch committed Feb 14, 2024
1 parent 8038e7c commit c0fadbe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/lynx-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ on:
jobs:
lynx-docker:
runs-on: ubuntu-latest
if: github.event.pull_request.labels.*.name == 'Lynx 🐳'
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Print a message if 'lynx' label is present
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: Call Docker Workflow if Label is Present
if: steps.label-check.outputs.has-lynx-label == 'true'
if: github.event.pull_request.labels.*.name == 'Lynx 🐳'
uses: ./.github/workflows/lynx-docker.yml@main
with:
docker_username: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit c0fadbe

Please sign in to comment.