Skip to content

Commit 8924899

Browse files
Updating github-config (#690)
1 parent 04a04ad commit 8924899

File tree

2 files changed

+56
-2
lines changed

2 files changed

+56
-2
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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: File Issue
31+
id: file-issue
32+
uses: paketo-buildpacks/github-config/actions/issue/file@main
33+
with:
34+
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
35+
repo: ${{ github.repository }}
36+
issue_title: "Release: ${{ github.event.repository.name }} (${{ steps.month.outputs.month }})"
37+
issue_body: |
38+
Release reminder for ${{ github.event.repository.name }}
39+
40+
* See [diff from latest version]("https://github.com/${{ github.repository }}/compare/${{ steps.latest-version.outputs.val }}..develop") and validate if a release is required.
41+
* 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 }})
42+
* Refer [release instructions](https://github.com/pivotal-cf/tanzu-buildpacks/wiki/Releasing-CF-Buildpacks). (private link)
43+
44+
- name: Add issue to project
45+
id: issue-to-proj
46+
uses: paketo-buildpacks/github-config/actions/issue/add-to-project@main
47+
with:
48+
# CF buildpacks project - https://github.com/orgs/cloudfoundry/projects/37
49+
project-org: cloudfoundry
50+
project-num: 37
51+
field-name: Workstream
52+
option-name: Release Train
53+
issue-node-id: ${{ steps.file-issue.outputs.node-id }}
54+
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}

.github/workflows/test-pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242

4343
- name: Run Integration Tests
4444
env:
45-
CF_BOT_GITHUB_TOKEN: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
46-
run: ./scripts/integration.sh --platform docker --github-token "${CF_BOT_GITHUB_TOKEN}"
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
run: ./scripts/integration.sh --platform docker --github-token "${GITHUB_TOKEN}"
4747

4848
approve:
4949
name: Approve Bot PRs

0 commit comments

Comments
 (0)