From e77b6572d21c26bd9903db008592f3f9ca463e63 Mon Sep 17 00:00:00 2001 From: Vedansh Date: Thu, 29 Aug 2024 22:25:38 +0530 Subject: [PATCH 1/3] Create mirror.yml add a mirror. --- .github/workflows/mirror.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..fe1a81d --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,21 @@ +name: CI / Gitlab - Mirror Sync +on: + schedule: + - cron: '0 */6 * * *' + push: + branches: ["*"] + workflow_dispatch: +jobs: + sync: + runs-on: ubuntu-latest + timeout-minutes: 10 + name: Gitlab Repo Sync + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: wangchucheng/git-repo-sync@v0.1.0 + with: + target-url: ${{ secrets.TARGET_URL }} + target-username: ${{ secrets.TARGET_USERNAME }} + target-token: ${{ secrets.TARGET_TOKEN }} From f78b9416d76dedbc26c7bb0a3d8aba90e5dfdc81 Mon Sep 17 00:00:00 2001 From: Vedansh Date: Thu, 29 Aug 2024 23:39:22 +0530 Subject: [PATCH 2/3] Update All Workflows. --- .github/workflows/flawfinder.yml | 10 ++-------- .github/workflows/pr-bot.yml | 6 +++--- .github/workflows/stale.yml | 7 +++---- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/flawfinder.yml b/.github/workflows/flawfinder.yml index 9214252..cd6c7f2 100644 --- a/.github/workflows/flawfinder.yml +++ b/.github/workflows/flawfinder.yml @@ -1,18 +1,12 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Code Scanning +name: CI / Code Scanning on: push: branches: [ "classic" ] pull_request: - # The branches below must be a subset of the branches above branches: [ "classic" ] schedule: - - cron: '27 7 * * 3' + - cron: '0 0 * * 0' jobs: flawfinder: diff --git a/.github/workflows/pr-bot.yml b/.github/workflows/pr-bot.yml index e0e05b5..d9cefe9 100644 --- a/.github/workflows/pr-bot.yml +++ b/.github/workflows/pr-bot.yml @@ -1,4 +1,4 @@ -name: Automated PR Manager +name: CI / Automated PR Manager on: push: @@ -19,8 +19,8 @@ jobs: with: destination_branch: "classic" pr_title: "Automated Pull Request by Actions Bot." - pr_template: ".github/pr-bot-template.md" + pr_template: ".github/PR_BOT_TEMPLATE.md" pr_reviewer: "offensive-vk" - pr_label: "bot,automated" + pr_label: "bot,automated,unknown" pr_assignee: "npm-run-test" pr_draft: false \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index bad234a..c6fc87f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,12 +1,11 @@ -name: Mark Stale Issues and PRs +name: CI / Mark Stale Issues and PRs on: schedule: - - cron: '10 0 * * *' # Runs daily at 12:10 AM + - cron: '10 0 * * 0' # Runs daily at 12:10 AM jobs: stale: - runs-on: ubuntu-latest permissions: issues: write @@ -15,7 +14,7 @@ jobs: steps: - uses: actions/stale@v5 with: - repo-token: ${{ secrets.GH_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'This issue seems to be inactive. If you believe its still relevant, please provide an update. Otherwise, it may be closed soon.' stale-pr-message: 'This pull request seems to be inactive. If you need further assistance or if there is any progress, please update the PR. Otherwise, it may be closed soon.' stale-issue-label: 'no-issue-activity' From bace72c7112642b01a60796cb85db0072a9d895e Mon Sep 17 00:00:00 2001 From: Vedansh Date: Fri, 30 Aug 2024 21:43:59 +0530 Subject: [PATCH 3/3] Updated CI. --- .github/workflows/flawfinder.yml | 2 +- .github/workflows/mirror.yml | 2 +- .github/workflows/pr-bot.yml | 2 +- .github/workflows/stale.yml | 9 +++++---- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/flawfinder.yml b/.github/workflows/flawfinder.yml index cd6c7f2..3efa84c 100644 --- a/.github/workflows/flawfinder.yml +++ b/.github/workflows/flawfinder.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ "classic" ] schedule: - - cron: '0 0 * * 0' + - cron: '0 0 * * *' jobs: flawfinder: diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index fe1a81d..589d29c 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,7 +1,7 @@ name: CI / Gitlab - Mirror Sync on: schedule: - - cron: '0 */6 * * *' + - cron: '0 */2 * * *' push: branches: ["*"] workflow_dispatch: diff --git a/.github/workflows/pr-bot.yml b/.github/workflows/pr-bot.yml index d9cefe9..482c501 100644 --- a/.github/workflows/pr-bot.yml +++ b/.github/workflows/pr-bot.yml @@ -6,7 +6,7 @@ on: - "classic" workflow_dispatch: schedule: - - cron: '0 0 * * 0' + - cron: '0 */1 * * *' jobs: create_pr: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index c6fc87f..29423c3 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,8 +1,8 @@ -name: CI / Mark Stale Issues and PRs +name: CI / Stale Issues and PRs on: schedule: - - cron: '10 0 * * 0' # Runs daily at 12:10 AM + - cron: '10 0 * * *' # Runs daily at 12:10 AM jobs: stale: @@ -15,7 +15,8 @@ jobs: - uses: actions/stale@v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-close: 7 stale-issue-message: 'This issue seems to be inactive. If you believe its still relevant, please provide an update. Otherwise, it may be closed soon.' stale-pr-message: 'This pull request seems to be inactive. If you need further assistance or if there is any progress, please update the PR. Otherwise, it may be closed soon.' - stale-issue-label: 'no-issue-activity' - stale-pr-label: 'no-pr-activity' + stale-issue-label: 'no-activity' + stale-pr-label: 'no-activity' \ No newline at end of file