Skip to content

Commit

Permalink
build: cleanup ci workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Nov 23, 2023
1 parent 8732a04 commit 994ccaf
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 181 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checkstyle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build
- uses: .github/actions/setup-build

- name: Run Checkstyle
run: ./gradlew checkstyleMain checkstyleTest
88 changes: 0 additions & 88 deletions .github/workflows/close-inactive-issues.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build
- uses: .github/actions/setup-build

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
57 changes: 16 additions & 41 deletions .github/workflows/discord-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,19 @@ on:
types: [ created ]

jobs:
message:
runs-on: ubuntu-latest
steps:
- name: New Discussion
uses: tsickert/[email protected]
if: ${{ (github.event_name == 'discussion') }}
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK_GITHUB }}
avatar-url: https://avatars.githubusercontent.com/u/9919?s=200&v=4
embed-author-name: ${{ github.event.sender.login }}
embed-author-url: ${{ github.event.sender.html_url }}
embed-author-icon-url: ${{ github.event.sender.avatar_url }}
embed-title: ${{ github.event.discussion.title }}
embed-url: ${{ github.event.discussion.html_url }}
embed-description: A **discussion** has been created in ${{ github.repository }}.

- name: New Issue
uses: tsickert/[email protected]
if: ${{ (github.event_name == 'issues') }}
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK_GITHUB }}
avatar-url: https://avatars.githubusercontent.com/u/9919?s=200&v=4
embed-author-name: ${{ github.event.sender.login }}
embed-author-url: ${{ github.event.sender.html_url }}
embed-author-icon-url: ${{ github.event.sender.avatar_url }}
embed-title: ${{ github.event.issue.title }}
embed-url: ${{ github.event.issue.html_url }}
embed-description: An **issue** has been opened in ${{ github.repository }}.

- name: New Pull Request
uses: tsickert/[email protected]
if: ${{ (github.event_name == 'pull_request_target') }}
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK_GITHUB }}
avatar-url: https://avatars.githubusercontent.com/u/9919?s=200&v=4
embed-author-name: ${{ github.event.sender.login }}
embed-author-url: ${{ github.event.sender.html_url }}
embed-author-icon-url: ${{ github.event.sender.avatar_url }}
embed-title: ${{ github.event.pull_request.title }}
embed-url: ${{ github.event.pull_request.html_url }}
embed-description: A **pull request** has been opened in ${{ github.repository }}.
trigger-workflow:
uses: eclipse-edc/.github/.github/workflows/discord-webhook.yml@main
with:
event_discussion_html_url: ${{ github.event.discussion.html_url }}
event_discussion_title: ${{ github.event.discussion.title }}
event_issue_html_url: ${{ github.event.issue.html_url }}
event_issue_title: ${{ github.event.issue.title }}
event_name: ${{ github.event_name }}
event_pull_request_html_url: ${{ github.event.pull_request.html_url }}
event_pull_request_title: ${{ github.event.pull_request.title }}
event_sender_avatar_url: ${{ github.event.sender.avatar_url }}
event_sender_html_url: ${{ github.event.sender.html_url }}
event_sender_login: ${{ github.event.sender.login }}
repository_name: ${{ github.repository }}
secrets:
env_discord: ${{ secrets.DISCORD_WEBHOOK_GITHUB }}
16 changes: 4 additions & 12 deletions .github/workflows/first-interaction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,7 @@ on:
types: [ opened ]

jobs:
add-comment:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Thanks for your contribution :fire: We will take a look asap :rocket:'
pr-message: >-
We are always happy to welcome new contributors :heart: To make things easier for everyone, please
make sure to follow our [contribution guidelines](https://github.com/eclipse-dataspaceconnector/DataSpaceConnector/blob/main/CONTRIBUTING.md),
check if you have already signed the [ECA](http://www.eclipse.org/legal/ecafaq.php), and
relate this pull request to an existing issue or discussion.
trigger-workflow:
uses: eclipse-edc/.github/.github/workflows/first-interaction.yml@main
secrets:
envGH: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/release-all-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bump-version
- uses: .github/actions/bump-version
with:
target_branch: "main"
base_version: ${{ needs.Prepare-Release.outputs.metamodel-version }}
base_version: ${{ needs.Prepare-Release.outputs.metamodel-version }}
36 changes: 4 additions & 32 deletions .github/workflows/scan-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,7 @@ concurrency:
cancel-in-progress: true

jobs:
check-pull-request-title:
runs-on: ubuntu-latest
continue-on-error: false
steps:
- uses: actions/checkout@v4
- uses: deepakputhraya/action-pr-title@master
with:
# Match pull request titles conventional commit syntax (https://www.conventionalcommits.org/en/v1.0.0/)
# (online tool for regex quick check: https://regex101.com/r/V5J8kh/1)
#
# Valid examples would be
# - fix: resolve minor issue
# - docs(Sample5): update docs for configuration
# - feat(management-api)!: change path to access contract agreements
#
# Invalid examples would be
# - Add cool feature
# - Feature/some cool improvement
# - fix: resolve minor issue.
regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(\w+((,|\/|\\)?\s?\w+)+\))?!?: [\S ]{1,80}[^\.]$'
allowed_prefixes: 'build,chore,ci,docs,feat,fix,perf,refactor,revert,style,test'
prefix_case_sensitive: true

check-for-assigned-labels:
runs-on: ubuntu-latest
continue-on-error: false
steps:
- uses: actions/checkout@v4
- uses: agilepathway/[email protected]
with:
any_of: api,bug,build,dependencies,documentation,enhancement,no-changelog,refactoring
repo_token: ${{ secrets.GITHUB_TOKEN }}
trigger-workflow:
uses: eclipse-edc/.github/.github/workflows/scan-pull-request.yml@main
secrets:
envGH: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/stale-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Close Inactive Issues

on:
schedule:
- cron: "30 1 * * *" # once a day (1:30 UTC)
workflow_dispatch: # allow manual trigger

jobs:
trigger-workflow:
uses: eclipse-edc/.github/.github/workflows/stale-bot.yml@main
secrets:
envGH: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build
- uses: .github/actions/setup-build

- name: Run unit tests
uses: ./.github/actions/run-tests
uses: .github/actions/run-tests
with:
command: ./gradlew test

Expand Down
4 changes: 2 additions & 2 deletions DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ maven/mavencentral/io.swagger.parser.v3/swagger-parser-v2-converter/2.0.23, Apac
maven/mavencentral/io.swagger.parser.v3/swagger-parser-v3/2.0.23, Apache-2.0, approved, clearlydefined
maven/mavencentral/io.swagger.parser.v3/swagger-parser/2.0.23, Apache-2.0, approved, clearlydefined
maven/mavencentral/io.swagger/swagger-annotations/1.6.2, Apache-2.0, approved, #3792
maven/mavencentral/io.swagger/swagger-compat-spec-parser/1.0.52, None, restricted, #11479
maven/mavencentral/io.swagger/swagger-compat-spec-parser/1.0.52, Apache-2.0, approved, #11479
maven/mavencentral/io.swagger/swagger-core/1.6.1, Apache-2.0, approved, #4358
maven/mavencentral/io.swagger/swagger-core/1.6.2, Apache-2.0, approved, #4358
maven/mavencentral/io.swagger/swagger-models/1.6.2, LicenseRef-scancode-proprietary-license, restricted, #11403
maven/mavencentral/io.swagger/swagger-models/1.6.2, Apache-2.0, approved, #11403
maven/mavencentral/io.swagger/swagger-parser/1.0.52, Apache-2.0, approved, #4359
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
maven/mavencentral/jakarta.validation/jakarta.validation-api/2.0.2, Apache-2.0, approved, ee4j.validation
Expand Down

0 comments on commit 994ccaf

Please sign in to comment.