|
12 | 12 | image_name_github_login: |
13 | 13 | required: true |
14 | 14 | type: string |
15 | | - secrets: |
16 | | - APP_ID: |
17 | | - description: 'GH App ID to request token for homebrew update' |
18 | | - required: true |
19 | | - APP_PRIVATE_KEY: |
20 | | - description: 'GH App Private Key to request token for homebrew update' |
21 | | - required: true |
22 | 15 |
|
23 | 16 | jobs: |
24 | 17 | version: |
@@ -100,73 +93,3 @@ jobs: |
100 | 93 | docker buildx imagetools create \ |
101 | 94 | --tag ${{ inputs.image_name_github_login }}:latest \ |
102 | 95 | ${{ inputs.image_name_github_login }}:${{ github.sha }} |
103 | | -
|
104 | | - homebrew-tap: |
105 | | - runs-on: ubuntu-22.04 |
106 | | - needs: version |
107 | | - if: needs.version.outputs.published == 'true' && github.ref_name == 'next' |
108 | | - continue-on-error: true |
109 | | - steps: |
110 | | - - name: generate token |
111 | | - uses: tibdex/github-app-token@v2 |
112 | | - id: generate-token |
113 | | - with: |
114 | | - app_id: ${{ secrets.APP_ID }} |
115 | | - private_key: ${{ secrets.APP_PRIVATE_KEY }} |
116 | | - - name: Trigger Homebrew |
117 | | - env: |
118 | | - VERSION: ${{ needs.version.outputs.version }} |
119 | | - RUN_ID: ${{ github.run_id }} |
120 | | - GH_TOKEN: ${{ steps.generate-token.outputs.token }} |
121 | | - run: | |
122 | | - gh workflow -R zitadel/homebrew-tap run update.yml -f runId=${RUN_ID} -f version=${VERSION} |
123 | | -
|
124 | | - helm-chart: |
125 | | - runs-on: ubuntu-22.04 |
126 | | - needs: version |
127 | | - if: needs.version.outputs.published == 'true' && github.ref_name == 'next' |
128 | | - continue-on-error: true |
129 | | - steps: |
130 | | - - name: generate token |
131 | | - uses: tibdex/github-app-token@v2 |
132 | | - id: generate-token |
133 | | - with: |
134 | | - app_id: ${{ secrets.APP_ID }} |
135 | | - private_key: ${{ secrets.APP_PRIVATE_KEY }} |
136 | | - - name: Trigger Chart Bump |
137 | | - env: |
138 | | - VERSION: ${{ needs.version.outputs.version }} |
139 | | - RUN_ID: ${{ github.run_id }} |
140 | | - GH_TOKEN: ${{ steps.generate-token.outputs.token }} |
141 | | - run: | |
142 | | - gh workflow -R zitadel/zitadel-charts run bump.yml |
143 | | -
|
144 | | - npm-packages: |
145 | | - runs-on: ubuntu-latest |
146 | | - needs: version |
147 | | - if: needs.version.outputs.published == 'true' && github.ref_name == 'next' |
148 | | - continue-on-error: true |
149 | | - steps: |
150 | | - - name: Checkout code |
151 | | - uses: actions/checkout@v4 |
152 | | - |
153 | | - - name: Set up Node.js |
154 | | - uses: actions/setup-node@v4 |
155 | | - with: |
156 | | - node-version: '20' |
157 | | - |
158 | | - - name: Install pnpm |
159 | | - uses: pnpm/action-setup@v4 |
160 | | - |
161 | | - - name: Install dependencies |
162 | | - working-directory: login |
163 | | - run: pnpm install --frozen-lockfile |
164 | | - |
165 | | - - name: Create Release Pull Request |
166 | | - uses: changesets/action@v1 |
167 | | - env: |
168 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
169 | | - with: |
170 | | - version: ${{ needs.version.outputs.version }} |
171 | | - cwd: packages |
172 | | - createGithubReleases: false |
0 commit comments