diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 87297b0..9884570 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,6 +7,8 @@ on: description: 'Release version (e.g. 1.0.0)' required: true type: string + repository_dispatch: + types: [release] permissions: contents: write @@ -19,5 +21,5 @@ jobs: RELEASE_APP_ID: ${{ secrets.RELEASE_APP_ID }} RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} with: - version: ${{ inputs.version }} + version: ${{ inputs.version || github.event.client_payload.version }} upstream-repo: fenio/tns-csi diff --git a/.github/workflows/renovate-app-token.yaml b/.github/workflows/renovate-app-token.yaml new file mode 100644 index 0000000..84b6e3c --- /dev/null +++ b/.github/workflows/renovate-app-token.yaml @@ -0,0 +1,21 @@ +name: Mend Renovate GitHub App Token + +on: + workflow_call: + outputs: + token: + description: "Short-lived GitHub App installation token" + value: ${{ jobs.app-token.outputs.token }} + +jobs: + app-token: + runs-on: runners-privilegedescalation + outputs: + token: ${{ steps.app-token.outputs.token }} + steps: + - name: Generate GitHub App token + id: app-token + uses: actions/create-github-app-token@v3 + with: + app-id: ${{ secrets.RELEASE_APP_ID }} + private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} \ No newline at end of file