diff --git a/.github/workflows/automated-create-release-branch.yml b/.github/workflows/automated-create-release-branch.yml deleted file mode 100644 index cda5633..0000000 --- a/.github/workflows/automated-create-release-branch.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Automated Create Release Branch - -on: - # Automated trigger from a job running on an external repo - repository_dispatch: - types: - - automated-create-release-branch - -env: - GITHUB_TOKEN: ${{ secrets.GITHUBSERVICETOKEN }} - -jobs: - create-release-branch: - runs-on: macos-latest - steps: - - uses: chartboost/chartboost-mediation-ios-actions/create-adapter-release-branch@v1 - with: - adapter-version: ${{ github.event.client_payload.adapter-version }} - partner-version: ${{ github.event.client_payload.partner-version }} diff --git a/.github/workflows/create-release-branch.yml b/.github/workflows/create-release-branch.yml index 1c01de5..af080eb 100644 --- a/.github/workflows/create-release-branch.yml +++ b/.github/workflows/create-release-branch.yml @@ -13,6 +13,10 @@ on: description: 'Partner version (e.g. ''~> 9.2.0'')' required: true default: '~> ' + # Automated trigger from a job running on an external repo + repository_dispatch: + types: + - automated-create-release-branch env: GITHUB_TOKEN: ${{ secrets.GITHUBSERVICETOKEN }} @@ -23,5 +27,5 @@ jobs: steps: - uses: chartboost/chartboost-mediation-ios-actions/create-adapter-release-branch@v1 with: - adapter-version: ${{ inputs.adapter-version }} - partner-version: ${{ inputs.partner-version }} + adapter-version: ${{ inputs.adapter-version || github.event.client_payload.adapter-version }} + partner-version: ${{ inputs.partner-version || github.event.client_payload.partner-version }}