This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
go-utils-update #142
This file contains 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: Auto Update - Go-Utils | |
on: | |
repository_dispatch: | |
types: [go-utils-update] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
update-spec: | |
env: | |
GO_UTILS_TARGET: ${{ github.event.client_payload.go-utils-target }} | |
KEPTN_BOT_USER: "keptn-bot <86361500+keptn-bot@users.noreply.github.com>" | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "~1.20" | |
check-latest: true | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Auto update go mod | |
run: ./gh-actions-scripts/auto-update-utils.sh "${{ env.GO_UTILS_TARGET }}" "go-utils" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.KEPTN_BOT_TOKEN }} | |
commit-message: "build(deps): Update keptn/go-utils to ${{ env.GO_UTILS_TARGET }}" | |
committer: ${{ env.KEPTN_BOT_USER }} | |
author: ${{ env.KEPTN_BOT_USER }} | |
signoff: true | |
branch: patch/go_utils_${{ env.GO_UTILS_TARGET }} | |
delete-branch: true | |
base: master | |
labels: "area:go-utils,automated pr,dependencies" | |
title: "build(deps): Auto-update go-utils to latest version" | |
body: | | |
:robot: **This is an automated PR!** :robot: | |
This is an automatically created PR to change [keptn/go-utils](https://github.com/keptn/go-utils) to version ${{ env.GO_UTILS_TARGET }}. |