Skip to content

Commit e90a2d0

Browse files
authored
docs(README): update the README.md (#5)
* docs(README): update the docs * chore(ci): these jobs can take expensive time so cancel them when possible * chore(sync): add the sync target * fix(ci): adjustments to the sync ci
1 parent e519904 commit e90a2d0

File tree

4 files changed

+19
-30
lines changed

4 files changed

+19
-30
lines changed

.github/template-sync.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
additional:
3+
- kong-openssl
34

45
files:
56
- '!README.md'
@@ -13,6 +14,6 @@ files:
1314
- '!Dockerfile'
1415
- '!build.sh'
1516
- '!test.sh'
16-
- .github/workflows/release.yaml
17-
- .releaserc
18-
- Makefile
17+
- '!.github/workflows/release.yaml'
18+
- '!.releaserc'
19+
- '!Makefile'

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on: # yamllint disable-line rule:truthy
77
branches:
88
- main
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
13+
1014
jobs:
1115
release:
1216
name: Create Release

.github/workflows/sync.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,12 @@ name: Sync the template repository
44
on: # yamllint disable-line rule:truthy
55
pull_request:
66
push:
7-
branches: main
7+
branches:
8+
- main
89

910
jobs:
10-
metadata:
11-
runs-on: ubuntu-latest
12-
13-
outputs:
14-
repository: ${{ steps.metadata.outputs.repository }}
15-
dockerfile: ${{ steps.dockerfile.outputs.exists }}
16-
17-
steps:
18-
- uses: actions/checkout@v3
19-
20-
- id: metadata
21-
uses: ahmadnassri/action-metadata@v2
22-
2311
sync:
24-
25-
needs:
26-
- metadata
27-
28-
# only runs if the repository is a template
29-
if: ${{ fromJSON(needs.metadata.outputs.repository).is_template }}
30-
3112
runs-on: ubuntu-latest
32-
3313
steps:
3414
- name: Queue
3515
uses: ahmadnassri/[email protected]
@@ -38,4 +18,4 @@ jobs:
3818
- name: Sync
3919
uses: ahmadnassri/[email protected]
4020
with:
41-
github-token: ${{ secrets.GH_TOKEN }}
21+
github-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ Use this template as a sensible baseline for new github repositories.
77
## Instructions
88

99
- Create template from repository
10-
- From the new repository settings page enable "Automatically delete head branches" as well as "Allow auto-merge"
11-
- From the new repository branches page create branch protection rule for `main` that requires "pre-commit" to pass as well as "Require a pull request before merging"
10+
- Install the [settings app](https://github.com/apps/settings) on the new repository
11+
- Remove and re-add the `.github/settings.yml` file so the settings app gets enabled
12+
- From the new repository settings page enable "Allow auto-merge"
1213
- Following the [CODEOWNERS SYNTAX](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax) guidelines, update the new repository CODEOWNERS file
1314
- Following our [Github bot guidline documentation](https://konghq.atlassian.net/wiki/spaces/ENGEN/pages/2720268304/How+To+-+Github+Automation+Guidelines) add a github and dependabot secret for AUTO_MERGE_TOKEN
14-
- Open a pull request on the new repository that seeds the secret baseline file `detect-secrets scan > .secrets.baseline` as well as a sensible README.md
15-
- **Update** the .github/template-sync.yml file in [kong/template-generic](https://github.com/Kong/template-generic) repository with the **cloned repository name** to enable template sync changes
15+
- **Update** the .github/template-sync.yml file in [kong/template-github-release](https://github.com/Kong/template-github-release) repository with the **cloned repository name** to enable template sync changes
16+
- Update .releaserc to have the correct repository name
17+
- Correct the image name in `.github/workflows/release.yaml`
18+
- Correct the image name in `Makefile`
19+
- Remove the sync workflow at `.github/template-sync.yml` and `.github/workflows/sync.yml`

0 commit comments

Comments
 (0)