-
-
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(monorepo): Added various workflows to the repository
- Loading branch information
1 parent
55ef55a
commit 1c8661e
Showing
8 changed files
with
321 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Weekly codeowners cleanup | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "3 2 1 * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
cleanowners: | ||
name: cleanowners | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
|
||
steps: | ||
- name: Run cleanowners action | ||
uses: github/cleanowners@v1 | ||
env: | ||
GH_TOKEN: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
ORGANIZATION: storm-software |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Monthly contributor report | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "3 2 1 * *" | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
contributor_report: | ||
name: contributor report | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get dates for last month | ||
shell: bash | ||
run: | | ||
# Calculate the first day of the previous month | ||
start_date=$(date -d "last month" +%Y-%m-01) | ||
# Calculate the last day of the previous month | ||
end_date=$(date -d "$start_date +1 month -1 day" +%Y-%m-%d) | ||
#Set an environment variable with the date range | ||
echo "START_DATE=$start_date" >> "$GITHUB_ENV" | ||
echo "END_DATE=$end_date" >> "$GITHUB_ENV" | ||
- name: Run contributor action | ||
uses: github/contributors@v1 | ||
env: | ||
GH_TOKEN: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
START_DATE: ${{ env.START_DATE }} | ||
END_DATE: ${{ env.END_DATE }} | ||
REPOSITORY: storm-software/cyclone-ui | ||
|
||
- name: Create issue | ||
uses: peter-evans/create-issue-from-file@v5 | ||
with: | ||
title: Thank you Storm-Ops contributors (${{ env.START_DATE }}..${{ | ||
env.END_DATE }}) | ||
token: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
content-filepath: ./contributors.md |
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,31 @@ | ||
--- | ||
name: Dependabot Update | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
branches: | ||
- dependabot | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
dependabot: | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: "${{secrets.STORM_BOT_GITHUB_TOKEN}}" | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' | ||
steps: | ||
- name: Fetch Dependabot metadata | ||
id: metadata | ||
uses: dependabot/fetch-metadata@v2 | ||
with: | ||
github-token: "${{ secrets.STORM_BOT_GITHUB_TOKEN }}" | ||
|
||
- name: Approve Dependabot PRs | ||
uses: storm-software/action-dependabot-approve@main |
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 |
---|---|---|
|
@@ -5,6 +5,8 @@ on: | |
push: | ||
branches: | ||
- main | ||
- canary | ||
- experimental | ||
paths: | ||
- .github/labels.yml | ||
|
||
|
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,178 @@ | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
name: Stale Bot workflow | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
build: | ||
if: ${{ github.repository_owner == 'storm-software' }} | ||
permissions: | ||
issues: write # to close stale issues (actions/stale) | ||
pull-requests: write # to close stale PRs (actions/stale) | ||
|
||
name: stale | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: stale-more-info-needed | ||
id: stale-more-info-needed | ||
uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
days-before-stale: 14 | ||
days-before-close: 14 | ||
stale-issue-label: "stale" | ||
operations-per-run: 300 | ||
remove-stale-when-updated: true | ||
only-labels: "blocked: more info needed" | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. | ||
If we missed this issue please reply to keep it active. | ||
Thanks for being a part of the Storm Software community! 🙏 | ||
- name: stale-needs-rebase | ||
id: stale-needs-rebase | ||
uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
days-before-stale: 14 | ||
days-before-close: 14 | ||
stale-issue-label: "stale" | ||
operations-per-run: 300 | ||
remove-stale-when-updated: true | ||
only-labels: "blocked: needs rebased" | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. | ||
If we missed this issue please reply to keep it active. | ||
Thanks for being a part of the Storm Software community! 🙏 | ||
- name: stale-repro-needed | ||
id: stale-repro-needed | ||
uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
days-before-stale: 14 | ||
days-before-close: 14 | ||
stale-issue-label: "stale" | ||
operations-per-run: 300 | ||
remove-stale-when-updated: true | ||
only-labels: "blocked: repro needed" | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. | ||
If we missed this issue please reply to keep it active. | ||
Thanks for being a part of the Storm Software community! 🙏 | ||
- name: stale-retry-with-latest | ||
id: stale-retry-with-latest | ||
uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
days-before-stale: 14 | ||
days-before-close: 14 | ||
stale-issue-label: "stale" | ||
operations-per-run: 300 | ||
remove-stale-when-updated: true | ||
only-labels: "blocked: retry with latest" | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. | ||
If we missed this issue please reply to keep it active. | ||
Thanks for being a part of the Storm Software community! 🙏 | ||
- name: stale-bug | ||
id: stale-bug | ||
uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
days-before-stale: 180 | ||
days-before-close: 14 | ||
stale-issue-label: "stale" | ||
operations-per-run: 300 | ||
remove-stale-when-updated: true | ||
only-labels: "type: bug" | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. | ||
If we missed this issue please reply to keep it active. | ||
Thanks for being a part of the Storm Software community! 🙏 | ||
- name: stale-cleanup | ||
id: stale-cleanup | ||
uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
days-before-stale: 180 | ||
days-before-close: 14 | ||
stale-issue-label: "stale" | ||
operations-per-run: 300 | ||
remove-stale-when-updated: true | ||
only-labels: "type: cleanup" | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. | ||
If we missed this issue please reply to keep it active. | ||
Thanks for being a part of the Storm Software community! 🙏 | ||
- name: stale-docs | ||
id: stale-docs | ||
uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
days-before-stale: 180 | ||
days-before-close: 14 | ||
stale-issue-label: "stale" | ||
operations-per-run: 300 | ||
remove-stale-when-updated: true | ||
only-labels: "type: docs" | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. | ||
If we missed this issue please reply to keep it active. | ||
Thanks for being a part of the Storm Software community! 🙏 | ||
- name: stale-enhancement | ||
id: stale-enhancement | ||
uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
days-before-stale: 250 | ||
days-before-close: 14 | ||
stale-issue-label: "stale" | ||
operations-per-run: 300 | ||
remove-stale-when-updated: true | ||
only-labels: "type: enhancement" | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. | ||
If we missed this issue please reply to keep it active. | ||
Thanks for being a part of the Storm Software community! 🙏 | ||
- name: stale-feature | ||
id: stale-feature | ||
uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
days-before-stale: 250 | ||
days-before-close: 14 | ||
stale-issue-label: "stale" | ||
operations-per-run: 300 | ||
remove-stale-when-updated: true | ||
only-labels: "type: feature" | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. | ||
If we missed this issue please reply to keep it active. | ||
Thanks for being a part of the Storm Software community! 🙏 | ||
- name: stale-question | ||
id: stale-question | ||
uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} | ||
days-before-stale: 45 | ||
days-before-close: 14 | ||
stale-issue-label: "stale" | ||
operations-per-run: 300 | ||
remove-stale-when-updated: true | ||
only-labels: "type: question / discussion" | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. | ||
If we missed this issue please reply to keep it active. | ||
Thanks for being a part of the Storm Software community! 🙏 |
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,31 @@ | ||
--- | ||
name: Sync labels | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- canary | ||
- experimental | ||
paths: | ||
- .github/labels.yml | ||
|
||
env: | ||
CI: true | ||
NX_DAEMON: false | ||
NX_VERBOSE_LOGGING: true | ||
SKIP_ENV_VALIDATION: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
labels: | ||
name: ♻️ Sync labels | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⤵️ Check out code from GitHub | ||
uses: actions/checkout@v4 | ||
- name: 🚀 Run Label Syncer | ||
uses: micnncim/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.STORM_BOT_GITHUB_TOKEN }} |