DROP butcher release job #51
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| # Declare default permissions as read only. | |
| permissions: read-all | |
| jobs: | |
| release: | |
| name: Create release | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Retrieve tag name | |
| if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
| run: | | |
| echo TAG_NAME=$(echo ${{ github.ref_name }}) >> $GITHUB_ENV | |
| sync-helm-charts: | |
| name: Trigger Helm Charts Sync Workflow | |
| needs: release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 | |
| id: generate-token | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| repositories: | | |
| helm-charts | |
| - name: Trigger chart update | |
| env: | |
| GH_TOKEN: ${{ steps.generate-token.outputs.token }} | |
| run: | | |
| echo '{ | |
| "event_type": "release-adm-controller", | |
| "client_payload": { | |
| "source_repo": "${{ github.repository }}", | |
| "tag": "${{ github.ref_name }}" | |
| } | |
| }' > payload.json | |
| gh api repos/${{ github.repository_owner }}/helm-charts/dispatches \ | |
| -X POST \ | |
| --input payload.json |