Skip to content

Commit

Permalink
ci/dependency: Fix bot signoff (envoyproxy#30407)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Oct 23, 2023
1 parent e374427 commit 69f1e43
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/envoy-dependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
steps:
- id: checkout
name: Checkout Envoy repository
uses: envoyproxy/toolshed/gh-actions/github/[email protected].25
uses: envoyproxy/toolshed/gh-actions/github/[email protected].27
with:
app_id: ${{ secrets.ENVOY_CI_DEP_APP_ID }}
app_key: ${{ secrets.ENVOY_CI_DEP_APP_KEY }}
- id: version
name: Shorten (possible) SHA
uses: envoyproxy/toolshed/gh-actions/str/[email protected].25
uses: envoyproxy/toolshed/gh-actions/str/[email protected].27
with:
string: ${{ inputs.version }}
length: 7
Expand All @@ -64,13 +64,13 @@ jobs:
TARGET: ${{ inputs.task == 'bazel' && 'update' || 'api-update' }}
TASK: ${{ inputs.task == 'bazel' && 'bazel' || 'api/bazel' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: envoyproxy/toolshed/gh-actions/upload/[email protected].25
- uses: envoyproxy/toolshed/gh-actions/upload/[email protected].27
name: Upload diff
with:
name: ${{ inputs.dependency }}-${{ steps.version.outputs.string }}
- name: Create a PR
if: ${{ inputs.pr }}
uses: envoyproxy/toolshed/gh-actions/github/[email protected].25
uses: envoyproxy/toolshed/gh-actions/github/[email protected].27
with:
base: main
body: |
Expand All @@ -79,6 +79,10 @@ jobs:
${{ inputs.pr_message }}
branch: >-
dependency/${{ inputs.task }}/${{ inputs.dependency }}/${{ steps.version.outputs.string }}
commit-message: |
${{ inputs.task == 'bazel' && 'deps' || 'deps/api' }}: Bump `${{ inputs.dependency }}` -> ${{ steps.version.outputs.string }}
Signed-off-by: ${{ env.COMMITTER_NAME }} <${{ env.COMMITTER_EMAIL }}>
committer-name: ${{ env.COMMITTER_NAME }}
committer-email: ${{ env.COMMITTER_EMAIL }}
title: >-
Expand All @@ -93,7 +97,7 @@ jobs:
steps:
- name: Fetch token for app auth
id: appauth
uses: envoyproxy/toolshed/gh-actions/[email protected].23
uses: envoyproxy/toolshed/gh-actions/[email protected].27
with:
app_id: ${{ secrets.ENVOY_CI_DEP_APP_ID }}
key: ${{ secrets.ENVOY_CI_DEP_APP_KEY }}
Expand Down Expand Up @@ -133,7 +137,7 @@ jobs:
- name: Check Docker SHAs
id: build-images
uses: envoyproxy/toolshed/gh-actions/docker/[email protected].23
uses: envoyproxy/toolshed/gh-actions/docker/[email protected].27
with:
images: |
sha: envoyproxy/envoy-build-ubuntu:${{ steps.build-tools.outputs.tag }}
Expand Down Expand Up @@ -162,13 +166,17 @@ jobs:
name: Update SHAs
working-directory: envoy
- name: Create a PR
uses: envoyproxy/toolshed/gh-actions/github/[email protected].23
uses: envoyproxy/toolshed/gh-actions/github/[email protected].27
with:
base: main
body: Created by Envoy dependency bot
branch: dependency-envoy/build-image/latest
committer-name: ${{ env.COMMITTER_NAME }}
committer-email: ${{ env.COMMITTER_EMAIL }}
commit-message: |
deps: Bump build images -> `${{ steps.build-tools.outputs.tag_short }}`
Signed-off-by: ${{ env.COMMITTER_NAME }} <${{ env.COMMITTER_EMAIL }}>
title: 'deps: Bump build images -> `${{ steps.build-tools.outputs.tag_short }}`'
GITHUB_TOKEN: ${{ steps.appauth.outputs.token }}
working-directory: envoy

0 comments on commit 69f1e43

Please sign in to comment.