add ability to pass base-branch from calling workflows #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SOUP - Generate all Missing | ||
| env: | ||
| GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }} | ||
| on: | ||
| workflow_call: | ||
| base-branch: | ||
| description: 'The base branch to compare against (e.g., main)' | ||
| required: false | ||
| default: 'main' | ||
| jobs: | ||
| generate-missing: | ||
| runs-on: [self-hosted, Linux] | ||
| steps: | ||
| - uses: QuickBirdEng/actions/checkout-ssh@main | ||
| with: | ||
| ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }} | ||
| - shell: bash | ||
| run: git clean -ffdx | ||
| - name: Generate All Missing SOUPs | ||
| uses: QuickBirdEng/actions/soup-generate-all-missing@main | ||
| with: | ||
| repository: ${{ github.event.repository.name }} | ||
| gh-api-token: ${{ env.GH_API_TOKEN }} | ||
| soup-approvers: ${{ vars.SOUP_APPROVERS }} | ||
| base-branch: ${{ inputs.base-branch }} | ||