Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates github-config #34

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/update-buildpack-toml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

on:
schedule:
- cron: '1 6 * * *' # daily at 06:01 UTC

Check warning on line 5 in .github/workflows/update-buildpack-toml.yml

View workflow job for this annotation

GitHub Actions / lintYaml

5:23 [comments] too few spaces before comment
workflow_dispatch: {}

concurrency: buildpack_update
Expand All @@ -22,6 +22,7 @@
branch: automations/buildpack.toml/update

- name: Update buildpack.toml
id: update
uses: initializ-buildpacks/github-config/actions/buildpack/update@main

- name: Commit
Expand All @@ -39,13 +40,22 @@
with:
branch: automations/buildpack.toml/update

- name: Open Pull Request (no semver label)
if: ${{ steps.commit.outputs.commit_sha != '' && steps.update.outputs.semver_bump == '' }}
uses: initializ-buildpacks/github-config/actions/pull-request/open@main
with:
token: ${{ secrets.PAT }}
title: "Updates buildpacks in buildpack.toml"
branch: automations/buildpack.toml/update

- name: Open Pull Request
if: ${{ steps.commit.outputs.commit_sha != '' }}
if: ${{ steps.commit.outputs.commit_sha != '' && steps.update.outputs.semver_bump != '' }}
uses: initializ-buildpacks/github-config/actions/pull-request/open@main
with:
token: ${{ secrets.PAT }}
title: "Updates buildpacks in buildpack.toml"
branch: automations/buildpack.toml/update
label: "semver:${{ steps.update.outputs.semver_bump }}"

failure:
name: Alert on Failure
Expand All @@ -64,4 +74,4 @@
issue_body: |
Update Buildpack TOML workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
comment_body: |
Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}

Check failure on line 77 in .github/workflows/update-buildpack-toml.yml

View workflow job for this annotation

GitHub Actions / lintYaml

77:110 [new-line-at-end-of-file] no new line character at the end of file
6 changes: 3 additions & 3 deletions .github/workflows/update-go-mod-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
id: current-go-version
uses: initializ-buildpacks/github-config/actions/update-go-mod-version@main
with:
toolchain-version: ${{ steps.setup-go.outputs.go-version }}
go-version: ${{ steps.setup-go.outputs.go-version }}
- name: Go mod tidy
run: |
#!/usr/bin/env bash
Expand All @@ -54,7 +54,7 @@
id: commit
uses: initializ-buildpacks/github-config/actions/pull-request/create-commit@main
with:
message: "Updates go mod toolchain version to ${{ steps.setup-go.outputs.go-version }}"
message: "Updates go mod version to ${{ steps.setup-go.outputs.go-version }}"
pathspec: "."
keyid: ${{ secrets.INITIALIZ_BOT_GPG_SIGNING_KEY_ID }}
key: ${{ secrets.INITIALIZ_BOT_GPG_SIGNING_KEY }}
Expand All @@ -70,7 +70,7 @@
uses: initializ-buildpacks/github-config/actions/pull-request/open@main
with:
token: ${{ secrets.PAT }}
title: "Updates go mod toolchain version to ${{ steps.setup-go.outputs.go-version }}"
title: "Updates go mod version to ${{ steps.setup-go.outputs.go-version }}"
branch: automation/go-mod-update/update-main

failure:
Expand All @@ -90,3 +90,3 @@
issue_body: |
Update Go Mod Version workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
comment_body: |
Expand Down
Loading