Skip to content

Commit

Permalink
Updating github-config (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
cf-buildpacks-eng authored Sep 29, 2022
1 parent 7f6a53c commit d019dc3
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 56 deletions.
14 changes: 5 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
---
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
target-branch: "develop"
schedule:
interval: daily
ignore:
- dependency-name: github.com/Dynatrace/libbuildpack-dynatrace
versions:
- 1.5.0
- package-ecosystem: gomod
directory: "/"
target-branch: "develop"
schedule:
interval: daily
93 changes: 46 additions & 47 deletions .github/workflows/update-github-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,64 +2,63 @@ name: Update shared github-config

on:
schedule:
- cron: '*/15 * * * *'
workflow_dispatch: {}
- cron: '*/15 * * * *'
workflow_dispatch: { }

jobs:
build:
name: Create PR to update shared files
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
ref: develop
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
ref: develop

- name: Checkout github-config
uses: actions/checkout@v2
with:
repository: cloudfoundry/buildpacks-github-config
path: github-config
- name: Checkout github-config
uses: actions/checkout@v2
with:
repository: cloudfoundry/buildpacks-github-config
path: github-config

- name: Checkout Branch
uses: paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main
with:
branch: automation/github-config/update
- name: Checkout Branch
uses: paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main
with:
branch: automation/github-config/update

- name: Run the sync action
uses: paketo-buildpacks/github-config/actions/sync@main
with:
workspace: /github/workspace
config: /github/workspace/github-config/buildpack
- name: Run the sync action
uses: paketo-buildpacks/github-config/actions/sync@main
with:
workspace: /github/workspace
config: /github/workspace/github-config/buildpack

- name: Cleanup
run: rm -rf github-config
- name: Cleanup
run: rm -rf github-config

- name: Commit
id: commit
uses: paketo-buildpacks/github-config/actions/pull-request/create-commit@main
with:
message: "Updating github-config"
pathspec: "."
committer_name: "Cloud Foundry Buildpacks Team Robot"
committer_email: "cf-buildpacks-eng@pivotal.io"
keyid: ${{ secrets.CF_BOT_GPG_KEY_ID }}
key: ${{ secrets.CF_BOT_GPG_KEY }}
- name: Commit
id: commit
uses: paketo-buildpacks/github-config/actions/pull-request/create-commit@main
with:
message: "Updating github-config"
pathspec: "."
committer_name: "Cloud Foundry Buildpacks Team Robot"
committer_email: "cf-buildpacks-eng@pivotal.io"
keyid: ${{ secrets.CF_BOT_GPG_KEY_ID }}
key: ${{ secrets.CF_BOT_GPG_KEY }}

- name: Push Branch
if: ${{ steps.commit.outputs.commit_sha != '' }}
uses: paketo-buildpacks/github-config/actions/pull-request/push-branch@main
with:
branch: automation/github-config/update

- name: Open Pull Request
if: ${{ steps.commit.outputs.commit_sha != '' }}
uses: paketo-buildpacks/github-config/actions/pull-request/open@main
with:
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
title: "Updates github-config"
branch: automation/github-config/update
base: develop
- name: Push Branch
if: ${{ steps.commit.outputs.commit_sha != '' }}
uses: paketo-buildpacks/github-config/actions/pull-request/push-branch@main
with:
branch: automation/github-config/update

- name: Open Pull Request
if: ${{ steps.commit.outputs.commit_sha != '' }}
uses: paketo-buildpacks/github-config/actions/pull-request/open@main
with:
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
title: "Updates github-config"
branch: automation/github-config/update
base: develop

0 comments on commit d019dc3

Please sign in to comment.