-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace with reusable workflows
- Loading branch information
1 parent
1519a72
commit 9d24e05
Showing
5 changed files
with
29 additions
and
178 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,51 +1,12 @@ | ||
name: 'Discord Webhook' | ||
name: Close Inactive Issues | ||
|
||
on: | ||
issues: | ||
types: [ opened ] | ||
pull_request_target: | ||
types: [ opened, reopened ] | ||
discussion: | ||
types: [ created ] | ||
schedule: | ||
- cron: "30 1 * * *" # once a day (1:30 UTC) | ||
workflow_dispatch: # allow manual trigger | ||
|
||
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/stale-bot.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
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 }} |