Skip to content

Commit b902987

Browse files
authored
build: cleanup ci workflows (#196)
1 parent 8732a04 commit b902987

File tree

7 files changed

+39
-176
lines changed

7 files changed

+39
-176
lines changed

.github/workflows/close-inactive-issues.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.

.github/workflows/discord-webhook.yml

Lines changed: 16 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,19 @@ on:
88
types: [ created ]
99

1010
jobs:
11-
message:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: New Discussion
15-
uses: tsickert/[email protected]
16-
if: ${{ (github.event_name == 'discussion') }}
17-
with:
18-
webhook-url: ${{ secrets.DISCORD_WEBHOOK_GITHUB }}
19-
avatar-url: https://avatars.githubusercontent.com/u/9919?s=200&v=4
20-
embed-author-name: ${{ github.event.sender.login }}
21-
embed-author-url: ${{ github.event.sender.html_url }}
22-
embed-author-icon-url: ${{ github.event.sender.avatar_url }}
23-
embed-title: ${{ github.event.discussion.title }}
24-
embed-url: ${{ github.event.discussion.html_url }}
25-
embed-description: A **discussion** has been created in ${{ github.repository }}.
26-
27-
- name: New Issue
28-
uses: tsickert/[email protected]
29-
if: ${{ (github.event_name == 'issues') }}
30-
with:
31-
webhook-url: ${{ secrets.DISCORD_WEBHOOK_GITHUB }}
32-
avatar-url: https://avatars.githubusercontent.com/u/9919?s=200&v=4
33-
embed-author-name: ${{ github.event.sender.login }}
34-
embed-author-url: ${{ github.event.sender.html_url }}
35-
embed-author-icon-url: ${{ github.event.sender.avatar_url }}
36-
embed-title: ${{ github.event.issue.title }}
37-
embed-url: ${{ github.event.issue.html_url }}
38-
embed-description: An **issue** has been opened in ${{ github.repository }}.
39-
40-
- name: New Pull Request
41-
uses: tsickert/[email protected]
42-
if: ${{ (github.event_name == 'pull_request_target') }}
43-
with:
44-
webhook-url: ${{ secrets.DISCORD_WEBHOOK_GITHUB }}
45-
avatar-url: https://avatars.githubusercontent.com/u/9919?s=200&v=4
46-
embed-author-name: ${{ github.event.sender.login }}
47-
embed-author-url: ${{ github.event.sender.html_url }}
48-
embed-author-icon-url: ${{ github.event.sender.avatar_url }}
49-
embed-title: ${{ github.event.pull_request.title }}
50-
embed-url: ${{ github.event.pull_request.html_url }}
51-
embed-description: A **pull request** has been opened in ${{ github.repository }}.
11+
trigger-workflow:
12+
uses: eclipse-edc/.github/.github/workflows/discord-webhook.yml@main
13+
with:
14+
event_discussion_html_url: ${{ github.event.discussion.html_url }}
15+
event_discussion_title: ${{ github.event.discussion.title }}
16+
event_issue_html_url: ${{ github.event.issue.html_url }}
17+
event_issue_title: ${{ github.event.issue.title }}
18+
event_name: ${{ github.event_name }}
19+
event_pull_request_html_url: ${{ github.event.pull_request.html_url }}
20+
event_pull_request_title: ${{ github.event.pull_request.title }}
21+
event_sender_avatar_url: ${{ github.event.sender.avatar_url }}
22+
event_sender_html_url: ${{ github.event.sender.html_url }}
23+
event_sender_login: ${{ github.event.sender.login }}
24+
repository_name: ${{ github.repository }}
25+
secrets:
26+
env_discord: ${{ secrets.DISCORD_WEBHOOK_GITHUB }}

.github/workflows/first-interaction.yml

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

99
jobs:
10-
add-comment:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/first-interaction@v1
14-
with:
15-
repo-token: ${{ secrets.GITHUB_TOKEN }}
16-
issue-message: 'Thanks for your contribution :fire: We will take a look asap :rocket:'
17-
pr-message: >-
18-
We are always happy to welcome new contributors :heart: To make things easier for everyone, please
19-
make sure to follow our [contribution guidelines](https://github.com/eclipse-dataspaceconnector/DataSpaceConnector/blob/main/CONTRIBUTING.md),
20-
check if you have already signed the [ECA](http://www.eclipse.org/legal/ecafaq.php), and
21-
relate this pull request to an existing issue or discussion.
10+
trigger-workflow:
11+
uses: eclipse-edc/.github/.github/workflows/first-interaction.yml@main
12+
secrets:
13+
envGH: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-all-java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ jobs:
7272
- uses: ./.github/actions/bump-version
7373
with:
7474
target_branch: "main"
75-
base_version: ${{ needs.Prepare-Release.outputs.metamodel-version }}
75+
base_version: ${{ needs.Prepare-Release.outputs.metamodel-version }}

.github/workflows/scan-pull-request.yaml

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
jobs:
13-
check-pull-request-title:
14-
runs-on: ubuntu-latest
15-
continue-on-error: false
16-
steps:
17-
- uses: actions/checkout@v4
18-
- uses: deepakputhraya/action-pr-title@master
19-
with:
20-
# Match pull request titles conventional commit syntax (https://www.conventionalcommits.org/en/v1.0.0/)
21-
# (online tool for regex quick check: https://regex101.com/r/V5J8kh/1)
22-
#
23-
# Valid examples would be
24-
# - fix: resolve minor issue
25-
# - docs(Sample5): update docs for configuration
26-
# - feat(management-api)!: change path to access contract agreements
27-
#
28-
# Invalid examples would be
29-
# - Add cool feature
30-
# - Feature/some cool improvement
31-
# - fix: resolve minor issue.
32-
regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(\w+((,|\/|\\)?\s?\w+)+\))?!?: [\S ]{1,80}[^\.]$'
33-
allowed_prefixes: 'build,chore,ci,docs,feat,fix,perf,refactor,revert,style,test'
34-
prefix_case_sensitive: true
35-
36-
check-for-assigned-labels:
37-
runs-on: ubuntu-latest
38-
continue-on-error: false
39-
steps:
40-
- uses: actions/checkout@v4
41-
- uses: agilepathway/[email protected]
42-
with:
43-
any_of: api,bug,build,dependencies,documentation,enhancement,no-changelog,refactoring
44-
repo_token: ${{ secrets.GITHUB_TOKEN }}
13+
trigger-workflow:
14+
uses: eclipse-edc/.github/.github/workflows/scan-pull-request.yml@main
15+
secrets:
16+
envGH: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale-bot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Close Inactive Issues
2+
3+
on:
4+
schedule:
5+
- cron: "30 1 * * *" # once a day (1:30 UTC)
6+
workflow_dispatch: # allow manual trigger
7+
8+
jobs:
9+
trigger-workflow:
10+
uses: eclipse-edc/.github/.github/workflows/stale-bot.yml@main
11+
secrets:
12+
envGH: ${{ secrets.GITHUB_TOKEN }}

DEPENDENCIES

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ maven/mavencentral/io.swagger.parser.v3/swagger-parser-v2-converter/2.0.23, Apac
5656
maven/mavencentral/io.swagger.parser.v3/swagger-parser-v3/2.0.23, Apache-2.0, approved, clearlydefined
5757
maven/mavencentral/io.swagger.parser.v3/swagger-parser/2.0.23, Apache-2.0, approved, clearlydefined
5858
maven/mavencentral/io.swagger/swagger-annotations/1.6.2, Apache-2.0, approved, #3792
59-
maven/mavencentral/io.swagger/swagger-compat-spec-parser/1.0.52, None, restricted, #11479
59+
maven/mavencentral/io.swagger/swagger-compat-spec-parser/1.0.52, Apache-2.0, approved, #11479
6060
maven/mavencentral/io.swagger/swagger-core/1.6.1, Apache-2.0, approved, #4358
6161
maven/mavencentral/io.swagger/swagger-core/1.6.2, Apache-2.0, approved, #4358
62-
maven/mavencentral/io.swagger/swagger-models/1.6.2, LicenseRef-scancode-proprietary-license, restricted, #11403
62+
maven/mavencentral/io.swagger/swagger-models/1.6.2, Apache-2.0, approved, #11403
6363
maven/mavencentral/io.swagger/swagger-parser/1.0.52, Apache-2.0, approved, #4359
6464
maven/mavencentral/jakarta.activation/jakarta.activation-api/1.2.1, EPL-2.0 OR BSD-3-Clause OR GPL-2.0-only with Classpath-exception-2.0, approved, ee4j.jaf
6565
maven/mavencentral/jakarta.validation/jakarta.validation-api/2.0.2, Apache-2.0, approved, ee4j.validation

0 commit comments

Comments
 (0)