Skip to content

Commit 5046aa5

Browse files
artemrysArtem Rys
authored andcommitted
ci: use reusable workflows for agreements and release notes
1 parent dbbdb7c commit 5046aa5

File tree

3 files changed

+10
-50
lines changed

3 files changed

+10
-50
lines changed

.github/workflows/agreements.yaml

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,8 @@ on:
66
types: [opened, closed, synchronize]
77

88
jobs:
9-
ContributorLicenseAgreement:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: "CLA Assistant"
13-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
14-
uses: cla-assistant/[email protected]
15-
env:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17-
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }}
18-
with:
19-
path-to-signatures: "signatures/version1/cla.json"
20-
path-to-document: "https://github.com/splunk/cla-agreement/blob/main/CLA.md"
21-
branch: "main"
22-
allowlist: dependabot[bot]
23-
remote-organization-name: splunk
24-
remote-repository-name: cla-agreement
25-
CodeOfConduct:
26-
runs-on: ubuntu-latest
27-
steps:
28-
- name: "COC Assistant"
29-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the Code of Conduct and I hereby accept the Terms') || github.event_name == 'pull_request_target'
30-
uses: cla-assistant/[email protected]
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }}
34-
with:
35-
path-to-signatures: "signatures/version1/coc.json"
36-
path-to-document: "https://github.com/splunk/cla-agreement/blob/main/CODE_OF_CONDUCT.md"
37-
branch: "main"
38-
allowlist: dependabot[bot]
39-
remote-organization-name: splunk
40-
remote-repository-name: cla-agreement
41-
custom-pr-sign-comment: "I have read the Code of Conduct and I hereby accept the Terms"
42-
create-file-commit-message: "For example: Creating file for storing COC Signatures"
43-
signed-commit-message: "$contributorName has signed the COC in #$pullRequestNo"
44-
custom-notsigned-prcomment: "All contributors have NOT signed the COC Document"
45-
custom-allsigned-prcomment: "****CLA Assistant Lite bot**** All contributors have signed the COC ✍️ ✅"
9+
call-workflow-agreements:
10+
uses: arys-splunk/github-workflows-reuse/.github/workflows/agreements.yml@main
11+
secrets:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }}

.github/workflows/build-test-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
python-version: "3.7"
1818
- name: Install actionlint
1919
run: |
20-
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.3/scripts/download-actionlint.bash)
20+
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.8/scripts/download-actionlint.bash)
2121
- uses: pre-commit/[email protected]
2222
test-unit:
2323
name: Unit tests on ${{ matrix.platform }} using Python ${{ matrix.python-version }}

.github/workflows/release-notes.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@ on:
66
types: [ edited ]
77

88
jobs:
9-
preview:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v2
13-
- run: |
14-
git fetch --prune --unshallow --tags
15-
- uses: snyk/[email protected]
16-
with:
17-
releaseBranch: main
18-
env:
19-
GITHUB_PR_USERNAME: ${{ github.actor }}
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
call-workflow-preview:
10+
uses: arys-splunk/github-workflows-reuse/.github/workflows/release-notes.yml@main
11+
secrets:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)