Skip to content

Commit 6855b69

Browse files
SRE-4275 synced file(s) with tokenio/composite-actions (#3)
synced local file(s) with [tokenio/composite-actions](https://github.com/tokenio/composite-actions). <details> <summary>Changed files</summary> <ul> <li>created local <code>.github/workflows/pr-title-checker.yaml</code> from remote <code>general/workflows/naming_convention.yaml</code></li> </ul> </details> --- This PR was created automatically by the [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action) workflow run [#17736855196](https://github.com/tokenio/composite-actions/actions/runs/17736855196) Co-authored-by: tokenio-actions-runner-app[bot] <111065407+tokenio-actions-runner-app[bot]@users.noreply.github.com>
1 parent 2faee0e commit 6855b69

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test naming convention
2+
# Controls when the workflow will run
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the main branch
5+
pull_request:
6+
branches: [ master ]
7+
types: [opened, synchronize, reopened, edited]
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
11+
jobs:
12+
pr_title_check:
13+
name: Naming Convention
14+
runs-on: infra-runner
15+
timeout-minutes: 15
16+
# Steps represent a sequence of tasks that will be executed as part of the job
17+
steps:
18+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+
- name: Checkout code
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
with:
22+
ref: ${{ github.event.pull_request.head.ref }}
23+
fetch-depth: 0
24+
- name: Get composite steps run repo
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
with:
27+
repository: tokenio/composite-actions
28+
ref: master
29+
path: .github/composite-actions
30+
ssh-key: ${{ secrets.GIT_SSH_KEY }}
31+
- name: Check if the PR title and the branch name is valid
32+
uses: ./.github/composite-actions/commit-sanity/pr-title-checker

0 commit comments

Comments
 (0)