Skip to content

Commit

Permalink
Testing PR workflow trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
webkod3r committed Feb 9, 2024
1 parent f97acd6 commit 6996539
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/validate-and-generate-transactional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: Validate and Generate Transactional Client Libraries

on:
pull_request:
types: [assigned, opened, synchronize, reopened, labeled]
types: [ assigned, opened, synchronize, reopened, labeled ]
push:

jobs:
validate:
if: ${{ github.event.label.name == 'test-transactional' }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'test-transactional') }}
runs-on: ubuntu-latest
outputs:
version: ${{ steps.set-version.outputs.version }}
Expand All @@ -33,7 +33,7 @@ jobs:
run: node utils/actions/setVersionVar.js --api=transactional

setup-cache:
if: ${{ github.event.label.name == 'test-transactional' }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'test-transactional') }}
runs-on: ubuntu-latest
needs: [validate]
steps:
Expand All @@ -52,7 +52,7 @@ jobs:
java -jar .cache/swagger-codegen-cli.jar help
generate-node:
if: ${{ github.event.label.name == 'test-transactional' }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'test-transactional') }}
runs-on: ubuntu-latest
needs: [validate, setup-cache]
steps:
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
path: swagger-out/transactional-node/mailchimp-transactional-node.zip

generate-php:
if: ${{ github.event.label.name == 'test-transactional' }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'test-transactional') }}
runs-on: ubuntu-latest
needs: [validate, setup-cache]

Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
path: swagger-out/transactional-php/mailchimp-transactional-php.zip

generate-ruby:
if: ${{ github.event.label.name == 'test-transactional' }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'test-transactional') }}
runs-on: ubuntu-latest
needs: [validate, setup-cache]
steps:
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
path: swagger-out/transactional-ruby/mailchimp-transactional-ruby.zip

generate-python:
if: ${{ github.event.label.name == 'test-transactional' }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'test-transactional') }}
runs-on: ubuntu-latest
needs: [validate, setup-cache]
steps:
Expand Down

0 comments on commit 6996539

Please sign in to comment.