Skip to content

Commit 92425df

Browse files
author
Sophie Wigmore
authored
Merge pull request #812 from cloudfoundry/sw-patch-1
Add minimal set of workflows
2 parents ef234b8 + c3ed991 commit 92425df

File tree

4 files changed

+168
-0
lines changed

4 files changed

+168
-0
lines changed

.github/labels.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
- name: status/blocked
2+
description: This issue has been triaged and resolving it is blocked on some other issue
3+
color: 848978
4+
- name: bug
5+
description: Something isn't working
6+
color: d73a4a
7+
- name: enhancement
8+
description: A new feature or request
9+
color: a2eeef
10+
- name: documentation
11+
description: This issue relates to writing documentation
12+
color: D4C5F9
13+
- name: semver:major
14+
description: A change requiring a major version bump
15+
color: 6b230e
16+
- name: semver:minor
17+
description: A change requiring a minor version bump
18+
color: cc6749
19+
- name: semver:patch
20+
description: A change requiring a patch version bump
21+
color: f9d0c4
22+
- name: good first issue
23+
description: A good first issue to get started with
24+
color: d3fc03
25+
- name: "failure:release"
26+
description: An issue filed automatically when a release workflow run fails
27+
color: f00a0a
28+
- name: "failure:push"
29+
description: An issue filed automatically when a push buildpackage workflow run fails
30+
color: f00a0a
31+
- name: dependency-deprecation
32+
description: Notice of dependency deprecation
33+
color: ffff00
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Dependency Deprecation Reminder
2+
3+
on:
4+
schedule:
5+
- cron: '5 0 * * 0'
6+
workflow_dispatch: {}
7+
8+
jobs:
9+
reminder:
10+
name: Reminder
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
ref: develop
17+
18+
- name: Get deprecations
19+
id: deprecations
20+
uses: cloudfoundry/buildpacks-github-config/actions/dependency/deprecation-list@main
21+
with:
22+
buildpack: .
23+
buffer-days: 30
24+
25+
- name: File Issue
26+
if: steps.deprecations.outputs.list != ''
27+
id: file-issue
28+
uses: paketo-buildpacks/github-config/actions/issue/file@main
29+
with:
30+
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
31+
repo: ${{ github.repository }}
32+
comment_if_exists: true
33+
label: dependency-deprecation
34+
issue_title: Dependency Deprecation Alert
35+
issue_body: |
36+
Please make sure the following dependencies are removed from buildpack on time.
37+
38+
${{ steps.deprecations.outputs.list }}
39+
comment_body: |
40+
Reminder that deprecation of the following dependencies may require attention
41+
42+
${{ steps.deprecations.outputs.list }}
43+
44+
- name: Add issue to project
45+
if: steps.deprecations.outputs.list != ''
46+
id: issue-to-proj
47+
uses: paketo-buildpacks/github-config/actions/issue/add-to-project@main
48+
with:
49+
# CF buildpacks project - https://github.com/orgs/cloudfoundry/projects/37
50+
project-org: cloudfoundry
51+
project-num: 37
52+
field-name: Workstream
53+
option-name: Dependency Deprecations
54+
issue-node-id: ${{ steps.file-issue.outputs.node-id }}
55+
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Release Reminder
2+
3+
on:
4+
schedule:
5+
- cron: '45 0 1 * *'
6+
workflow_dispatch: {}
7+
8+
jobs:
9+
reminder:
10+
name: Reminder
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- name: Get Month
14+
id: month
15+
run: |
16+
echo "month=$(date +%b)" >> "${GITHUB_OUTPUT}"
17+
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
with:
21+
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
22+
ref: develop
23+
fetch-depth: 0
24+
25+
- name: Get Latest Version
26+
id: latest-version
27+
run: |
28+
echo "val=$(git describe --abbrev=0 --tag)" >> "${GITHUB_OUTPUT}"
29+
30+
- name: PHP specific task
31+
id: php-specific
32+
if: github.repository == 'cloudfoundry/php-buildpack'
33+
run: |
34+
echo 'task=* Bump PHP modules. See [doc](https://github.com/cloudfoundry/buildpacks-ci/tree/master/scripts/php-modules#pre-buildpack-release-task)' >> "${GITHUB_OUTPUT}"
35+
36+
- name: File Issue
37+
id: file-issue
38+
uses: paketo-buildpacks/github-config/actions/issue/file@main
39+
with:
40+
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
41+
repo: ${{ github.repository }}
42+
issue_title: "Release: ${{ github.event.repository.name }} (${{ steps.month.outputs.month }})"
43+
issue_body: |
44+
Release reminder for ${{ github.event.repository.name }}
45+
46+
${{ steps.php-specific.outputs.task }}
47+
* See [diff from latest version]("https://github.com/${{ github.repository }}/compare/${{ steps.latest-version.outputs.val }}..develop") and validate if a release is required.
48+
* Make sure the latest commit on `develop` has passed tests on the [CI](https://buildpacks.ci.cf-app.com/teams/main/pipelines/${{ github.event.repository.name }})
49+
* Refer [release instructions](https://github.com/pivotal-cf/tanzu-buildpacks/wiki/Releasing-CF-Buildpacks). (private link)
50+
51+
- name: Add issue to project
52+
id: issue-to-proj
53+
uses: paketo-buildpacks/github-config/actions/issue/add-to-project@main
54+
with:
55+
# CF buildpacks project - https://github.com/orgs/cloudfoundry/projects/37
56+
project-org: cloudfoundry
57+
project-num: 37
58+
field-name: Workstream
59+
option-name: Release Train
60+
issue-node-id: ${{ steps.file-issue.outputs.node-id }}
61+
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Synchronize Labels
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
paths:
8+
- .github/labels.yml
9+
workflow_dispatch: {}
10+
jobs:
11+
synchronize:
12+
name: Synchronize Labels
13+
runs-on:
14+
- ubuntu-22.04
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: micnncim/action-label-syncer@v1
18+
env:
19+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)