Skip to content

Commit

Permalink
Merge pull request #353 from webkod3r/upgrade-axios
Browse files Browse the repository at this point in the history
Trigger validation and tests in every commit and consecutive commit
  • Loading branch information
webkod3r authored Feb 10, 2024
2 parents b2ca4e4 + 6996539 commit 0725c0b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/validate-and-generate-transactional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: Validate and Generate Transactional Client Libraries

on:
pull_request:
types: [ 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 @@ -32,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 @@ -51,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 @@ -106,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 @@ -150,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 @@ -194,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 0725c0b

Please sign in to comment.