Skip to content

Commit e31eeaf

Browse files
author
Artem Rys
authored
ci: specify reusable workflow version (#490)
1 parent 52ce809 commit e31eeaf

File tree

2 files changed

+10
-56
lines changed

2 files changed

+10
-56
lines changed

.github/workflows/agreements.yaml

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +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-
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
26-
#signed-commit-messag e: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
27-
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
28-
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
29-
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
30-
CodeOfConduct:
31-
runs-on: ubuntu-latest
32-
steps:
33-
- name: "COC Assistant"
34-
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'
35-
uses: cla-assistant/[email protected]
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }}
39-
with:
40-
path-to-signatures: "signatures/version1/coc.json"
41-
path-to-document: "https://github.com/splunk/cla-agreement/blob/main/CODE_OF_CONDUCT.md"
42-
branch: "main"
43-
allowlist: dependabot[bot]
44-
remote-organization-name: splunk
45-
remote-repository-name: cla-agreement
46-
custom-pr-sign-comment: "I have read the Code of Conduct and I hereby accept the Terms"
47-
create-file-commit-message: "For example: Creating file for storing COC Signatures"
48-
signed-commit-message: "$contributorName has signed the COC in #$pullRequestNo"
49-
custom-notsigned-prcomment: "All contributors have NOT signed the COC Document"
50-
custom-allsigned-prcomment: "****CLA Assistant Lite bot**** All contributors have signed the COC ✍️ ✅"
9+
call-workflow-agreements:
10+
uses: splunk/addonfactory-github-workflows/.github/workflows/[email protected]
11+
secrets:
12+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }}

.github/workflows/release-notes.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,11 @@ name: Release-Notes-Preview
22

33
on:
44
pull_request:
5-
# branches: [main, develop]
65
issue_comment:
7-
types: [edited]
6+
types: [ edited ]
87

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

0 commit comments

Comments
 (0)