forked from eclipse-edc/Connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add reusable workflows (eclipse-edc#3295)
* chore: remove templates * feat: replace with reusable workflows * refactor: remove markdown files that have been moved to eclipse-edc/.github
- Loading branch information
1 parent
09c4dd2
commit 93f8c2d
Showing
71 changed files
with
51 additions
and
3,172 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,33 +10,7 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
check-pull-request-title: | ||
runs-on: ubuntu-latest | ||
continue-on-error: false | ||
steps: | ||
- 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: 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
Oops, something went wrong.