From b19e9d2e4416ba78c15b3d1d46bdbdf9a27c2ec4 Mon Sep 17 00:00:00 2001 From: Bloomingg <1293499952@qq.com> Date: Mon, 27 May 2024 17:53:20 +0800 Subject: [PATCH] ci: auto build electron assets --- .github/workflows/auto-assign-issue.yml | 26 --------- .github/workflows/auto-build-electron.yml | 61 +++++++++++++++++++ .github/workflows/auto-invite.yml | 39 ------------- .github/workflows/check-coverage.yml | 46 --------------- .github/workflows/cla.yml | 48 --------------- .github/workflows/codeql-analysis.yml | 71 ----------------------- .github/workflows/gosec.yml | 30 ---------- .github/workflows/help-comment-issue.yml | 21 ------- .github/workflows/issue-robot.yml | 17 ------ .github/workflows/link-pr.yml | 47 --------------- .github/workflows/opencommit.yml | 39 ------------- .github/workflows/project-progress.yml | 22 ------- .github/workflows/release.yml | 64 -------------------- .github/workflows/stale.yml | 34 ----------- 14 files changed, 61 insertions(+), 504 deletions(-) delete mode 100644 .github/workflows/auto-assign-issue.yml create mode 100644 .github/workflows/auto-build-electron.yml delete mode 100644 .github/workflows/auto-invite.yml delete mode 100644 .github/workflows/check-coverage.yml delete mode 100644 .github/workflows/cla.yml delete mode 100644 .github/workflows/codeql-analysis.yml delete mode 100644 .github/workflows/gosec.yml delete mode 100644 .github/workflows/help-comment-issue.yml delete mode 100644 .github/workflows/issue-robot.yml delete mode 100644 .github/workflows/link-pr.yml delete mode 100644 .github/workflows/opencommit.yml delete mode 100644 .github/workflows/project-progress.yml delete mode 100644 .github/workflows/release.yml delete mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/auto-assign-issue.yml b/.github/workflows/auto-assign-issue.yml deleted file mode 100644 index 7afebe0..0000000 --- a/.github/workflows/auto-assign-issue.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Assign issue to comment author -on: - issue_comment: - types: [created] -jobs: - assign-issue: - if: contains(github.event.comment.body, '/assign') || contains(github.event.comment.body, '/accept') - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Assign the issue - run: | - export LETASE_MILESTONES=$(curl "https://api.github.com/repos/$OWNER/$REPO/milestones" | jq -r 'last(.[]).title') - gh issue edit ${{ github.event.issue.number }} --add-assignee "${{ github.event.comment.user.login }}" - gh issue edit ${{ github.event.issue.number }} --add-label "triage/accepted" - gh issue edit ${{ github.event.issue.number }} --milestone "$LETASE_MILESTONES" - gh issue comment $ISSUE --body "@${{ github.event.comment.user.login }} Glad to see you accepted this issue๐Ÿคฒ, this issue has been assigned to you.
I set the milestones for this issue to $LETASE_MILESTONES, we are looking forward to your PR!" - env: - GH_TOKEN: ${{ secrets.REDBOT_GITHUB_TOKEN }} - ISSUE: ${{ github.event.issue.html_url }} - OWNER: ${{ github.repository_owner }} - REPO: ${{ github.event.repository.name }} \ No newline at end of file diff --git a/.github/workflows/auto-build-electron.yml b/.github/workflows/auto-build-electron.yml new file mode 100644 index 0000000..6acbe1e --- /dev/null +++ b/.github/workflows/auto-build-electron.yml @@ -0,0 +1,61 @@ +name: Build electron assets + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + arch: amd64 + build: buildLinux + - os: ubuntu-latest + arch: arm64 + build: buildLinux + - os: macos-latest + arch: amd64 + build: buildIOS + - os: macos-latest + arch: arm64 + build: buildIOS + - os: windows-latest + arch: amd64 + build: buildWindows + - os: windows-latest + arch: 386 + build: buildWindows + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Go environment + uses: actions/setup-go@v5 + with: + go-version: '1.22' + + - name: Check Go version + run: go version + + - name: Setup and build on Windows ${{ matrix.arch }} + if: runner.os == 'Windows' + run: | + echo "GOARCH=${{ matrix.arch }}" >> $GITHUB_ENV + ./bootstrap_install_mage.bat + mage ${{ matrix.build }} + + - name: Setup and build on ${{ matrix.os }} ${{ matrix.arch }} + if: runner.os != 'Windows' + run: | + sudo bash ./bootstrap_install_mage.sh + sudo mage ${{ matrix.build }} + + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.os }}-${{ matrix.arch }}-assets + path: shared/${{ (matrix.os == 'macos-latest' && 'ios' || (matrix.os == 'windows-latest' && 'windows' || 'linux')) }}/ + \ No newline at end of file diff --git a/.github/workflows/auto-invite.yml b/.github/workflows/auto-invite.yml deleted file mode 100644 index 9d8effb..0000000 --- a/.github/workflows/auto-invite.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Invite users to join our group -on: - issue_comment: - types: - - created -jobs: - issue_comment: - name: Invite users to join our group - if: ${{ github.event.comment.body == '/invite' || github.event.comment.body == '/close' || github.event.comment.body == '/comment' }} - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - - name: Invite user to join our group - uses: peter-evans/create-or-update-comment@v1 - with: - token: ${{ secrets.BOT_GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - body: | - We value close connections with our users, developers, and contributors here at Open-IM-Server. With a large community and maintainer team, we're always here to help and support you. Whether you're looking to join our community or have any questions or suggestions, we welcome you to get in touch with us. - - Our most recommended way to get in touch is through [Slack](https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg). Even if you're in China, Slack is usually not blocked by firewalls, making it an easy way to connect with us. Our Slack community is the ideal place to discuss and share ideas and suggestions with other users and developers of Open-IM-Server. You can ask technical questions, seek help, or share your experiences with other users of Open-IM-Server. - - In addition to Slack, we also offer the following ways to get in touch: - - + We also have Slack channels for you to communicate and discuss. To join, visit https://slack.com/ and join our [๐Ÿ‘€ Open-IM-Server slack](https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg) team channel. - + Get in touch with us on [Gmail](https://mail.google.com/mail/u/0/?fs=1&tf=cm&to=winxu81@gmail.com). If you have any questions or issues that need resolving, or any suggestions and feedback for our open source projects, please feel free to contact us via email. - + Read our [blog](https://doc.rentsoft.cn/). Our blog is a great place to stay up-to-date with Open-IM-Server projects and trends. On the blog, we share our latest developments, tech trends, and other interesting information. - + Add [Wechat](https://github.com/OpenIMSDK/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg) and indicate that you are a user or developer of Open-IM-Server. We will process your request as soon as possible. - - - name: Close Issue - uses: peter-evans/close-issue@v3 - with: - token: ${{ secrets.BOT_GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - comment: ๐Ÿค– Auto-closing issue, if you still need help please reopen the issue or ask for help in the community above - labels: | - triage/accepted \ No newline at end of file diff --git a/.github/workflows/check-coverage.yml b/.github/workflows/check-coverage.yml deleted file mode 100644 index b4a6a69..0000000 --- a/.github/workflows/check-coverage.yml +++ /dev/null @@ -1,46 +0,0 @@ -# name: Check-Coverage - - -# on: -# workflow_dispatch: -# push: -# branches: [ "main" ] -# paths-ignore: -# - "docs/**" -# - "**/*.md" -# - "**/*.yaml" -# - "CONTRIBUTORS" -# - "CHANGELOG/**" -# pull_request: -# branches: [ "*" ] -# paths-ignore: -# - "docs/**" -# - "**/*.md" -# - "**/*.yaml" -# - "CONTRIBUTORS" -# - "CHANGELOG/**" -# env: -# # Common versions -# GO_VERSION: "1.20" - -# jobs: -# coverage: -# runs-on: ubuntu-20.04 -# steps: -# - name: Checkout -# uses: actions/checkout@v3 - -# - name: Setup Golang with cache -# uses: magnetikonline/action-golang-cache@v3 -# with: -# go-version: ${{ env.GO_VERSION }} -# token: ${{ secrets.BOT_GITHUB_TOKEN }} - -# - name: Install Dependencies -# run: sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev - -# - name: Run Cover -# run: make cover - -# - name: Upload Coverage to Codecov -# uses: codecov/codecov-action@v3 diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml deleted file mode 100644 index 65497a1..0000000 --- a/.github/workflows/cla.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: "OpenIM CLA Assistant" -on: - issue_comment: - types: [created] - pull_request_target: - types: [opened,closed,synchronize] - -# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings -permissions: - actions: write - contents: write - pull-requests: write - statuses: write - -env: - # Define Open-IM-Server variables here - OPEN_IM_SERVER_REMOTE_ORGANIZATION: openim-sigs - REMOTE_REPOSITORY: cla - OPEN_IM_SERVER_CLA_DOCUMENT: https://github.com/openim-sigs/cla/blob/main/README.md - OPEN_IM_SERVER_SIGNATURES_PATH: signatures/${{ github.event.repository.name }}/cla.json - - OPEN_IM_SERVER_ALLOWLIST: kubbot,bot* - -jobs: - CLAAssistant: - runs-on: ubuntu-latest - steps: - - name: "CLA Assistant" - if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' - uses: contributor-assistant/github-action@v2.3.0 - env: - GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} - PERSONAL_ACCESS_TOKEN: ${{ secrets.REDBOT_GITHUB_TOKEN }} - with: - path-to-signatures: ${{ env.OPEN_IM_SERVER_SIGNATURES_PATH }} - path-to-document: ${{ env.OPEN_IM_SERVER_CLA_DOCUMENT }} - branch: 'main' - allowlist: ${{ env.OPEN_IM_SERVER_ALLOWLIST }} - - remote-organization-name: ${{ env.OPEN_IM_SERVER_REMOTE_ORGANIZATION }} - remote-repository-name: ${{ env.REMOTE_REPOSITORY }} - - create-file-commit-message: '๐Ÿ“š Docs: Creating file for storing ${{ github.event.repository.name }} CLA Signatures' - custom-notsigned-prcomment: '๐Ÿ’• Thank you for your contribution and please kindly read and sign our [๐ŸŽฏhttps://github.com/openim-sigs/cla/blob/main/README.md](https://github.com/openim-sigs/cla/blob/main/README.md)
' - custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA' - custom-allsigned-prcomment: '๐Ÿค– All Contributors have signed the [${{ github.event.repository.name }} CLA](https://github.com/openim-sigs/cla/blob/main/README.md).
The signed information is recorded [๐Ÿค–here](https://github.com/openim-sigs/cla/tree/main/signatures/${{ env.OPEN_IM_SERVER_ALLOWLIST }}/cla.json)' - # lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true) - # use-dco-flag: true - If you are using DCO instead of CLA diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 38508b7..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,71 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ main ] - pull_request: - # The branches below must be a subset of the branches above - branches: "*" -# schedule: -# - cron: '23 2 * * 2' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'go' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] - # Learn more: - # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - # โ„น๏ธ Command-line programs to run using the OS shell. - # ๐Ÿ“š https://git.io/JvXDl - - # โœ๏ธ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/gosec.yml b/.github/workflows/gosec.yml deleted file mode 100644 index 60f42ae..0000000 --- a/.github/workflows/gosec.yml +++ /dev/null @@ -1,30 +0,0 @@ -# name: Run gosec - -# # gosec is a source code security audit tool for the Go language. It performs a static -# # analysis of the Go code, looking for potential security problems. The main functions of gosec are: -# # 1. Find common security vulnerabilities, such as SQL injection, command injection, and cross-site scripting (XSS). -# # 2. Audit codes according to common security standards and find non-standard codes. -# # 3. Assist the Go language engineer to write safe and reliable code. - -# on: -# push: -# branches: "*" -# pull_request: -# branches: "*" -# paths-ignore: -# - '*.md' -# - '*.yml' -# - '.github' - -# jobs: -# golang-security-action: -# runs-on: ubuntu-latest -# env: -# GO111MODULE: on -# steps: -# - name: Check out code -# uses: actions/checkout@v3 -# - name: Run Gosec Security Scanner -# uses: securego/gosec@master -# with: -# args: ./... \ No newline at end of file diff --git a/.github/workflows/help-comment-issue.yml b/.github/workflows/help-comment-issue.yml deleted file mode 100644 index b1414d7..0000000 --- a/.github/workflows/help-comment-issue.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Good frist issue add comment -on: - issues: - types: - - labeled -jobs: - add-comment: - if: github.event.label.name == 'help wanted' || github.event.label.name == 'good first issue' - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - name: Add comment - uses: peter-evans/create-or-update-comment@v3 - with: - issue-number: ${{ github.event.issue.number }} - token: ${{ secrets.BOT_GITHUB_TOKEN }} - body: | - This issue is available for anyone to work on. **Make sure to reference this issue in your pull request.** :sparkles: Thank you for your contribution! :sparkles: - [Join slack ๐Ÿค–](https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg) to connect and communicate with our developers. - If you wish to accept this assignment, please leave a comment in the comments section: `/accept`.๐ŸŽฏ diff --git a/.github/workflows/issue-robot.yml b/.github/workflows/issue-robot.yml deleted file mode 100644 index 74927a0..0000000 --- a/.github/workflows/issue-robot.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: 'issue translator' -on: - issue_comment: - types: [created] - issues: - types: [opened] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: usthe/issues-translate-action@v2.7 - with: - # it is not necessary to decide whether you need to modify the issue header content - IS_MODIFY_TITLE: true - BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} - # Required, input your bot github token \ No newline at end of file diff --git a/.github/workflows/link-pr.yml b/.github/workflows/link-pr.yml deleted file mode 100644 index 844dd5f..0000000 --- a/.github/workflows/link-pr.yml +++ /dev/null @@ -1,47 +0,0 @@ -# name: Github Rebot for Link check error - -# on: -# pull_request: -# branches: [ main ] -# paths: -# - '**.md' -# - 'docs/**' -# - '.lycheeignore' -# push: -# branches: [ main ] - -# schedule: -# - cron: '0 11 * * *' - -# jobs: -# linkChecker: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v3 - -# - name: Link Checker -# id: lychee -# uses: lycheeverse/lychee-action@v1.7.0 -# with: -# # For parameter description, see https://github.com/lycheeverse/lychee#commandline-parameters -# # Actions Link address -> https://github.com/lycheeverse/lychee-action -# # -E, --exclude-all-private Exclude all private IPs from checking. -# # -i, --insecure Proceed for server connections considered insecure (invalid TLS) -# # -n, --no-progress Do not show progress bar. -# # -t, --timeout Website timeout in seconds from connect to response finished [default:20] -# # --max-concurrency Maximum number of concurrent network requests [default: 128] -# # -a --accept Comma-separated list of accepted status codes for valid links -# # docs/.vitepress/dist the site directory to check -# # ./*.md all markdown files in the root directory -# args: --verbose -E -i --no-progress --exclude-path './CHANGELOG' './**/*.md' -# env: -# GITHUB_TOKEN: ${{secrets.GH_PAT}} - -# - name: Create Issue From File -# if: env.lychee_exit_code != 0 -# uses: peter-evans/create-issue-from-file@v4 -# with: -# title: Bug reports for links in OpenIM docs -# content-filepath: ./lychee/out.md -# labels: kind/documentation, triage/unresolved, report -# token: ${{ secrets.BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/opencommit.yml b/.github/workflows/opencommit.yml deleted file mode 100644 index d3d5250..0000000 --- a/.github/workflows/opencommit.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: 'OpenCommit Action' - -on: - push: - # this list of branches is often enough, - # but you may still ignore other public branches - branches-ignore: [main master dev development release] - -jobs: - opencommit: - timeout-minutes: 10 - name: OpenCommit - runs-on: ubuntu-latest - permissions: write-all - steps: - - name: Setup Node.js Environment - uses: actions/setup-node@v2 - with: - node-version: '16' - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: di-sukharev/opencommit@github-action-v1.0.4 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - env: - # set openAI api key in repo actions secrets, - # for openAI keys go to: https://platform.openai.com/account/api-keys - # for repo secret go to: https://github.com/kuebcub/settings/secrets/actions - OCO_OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - - # customization - OCO_OPENAI_MAX_TOKENS: 500 - OCO_OPENAI_BASE_PATH: '' - OCO_DESCRIPTION: false - OCO_EMOJI: false - OCO_MODEL: gpt-3.5-turbo - OCO_LANGUAGE: en \ No newline at end of file diff --git a/.github/workflows/project-progress.yml b/.github/workflows/project-progress.yml deleted file mode 100644 index ad721a3..0000000 --- a/.github/workflows/project-progress.yml +++ /dev/null @@ -1,22 +0,0 @@ -# GitHub recommends pinning actions to a commit SHA. -# To get a newer version, you will need to update the SHA. -# You can also reference a tag or branch, but the action may change without warning. - -name: Move assigned card -on: - issues: - types: - - assigned - pull_request: - types: - - assigned - -jobs: - move-assigned-card: - runs-on: ubuntu-latest - steps: - - uses: alex-page/github-project-automation-plus@v0.8.3 - with: - project: OpenIM 2023 Sprint ๐Ÿ”ฅ - column: In Progress - repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index c4f1907..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: OpenIM Server Release - -on: - push: - # run only against tags - tags: - - '*' - -permissions: - contents: write - packages: write - issues: write - -jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: git fetch --force --tags - - uses: actions/setup-go@v4 - with: - go-version: stable - # More assembly might be required: Docker logins, GPG, etc. It all depends - # on your needs. - - uses: goreleaser/goreleaser-action@v4 - with: - # either 'goreleaser' (default) or 'goreleaser-pro': - distribution: goreleaser - version: latest - args: release --clean - env: - GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} - # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' - # distribution: - # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} - - goreleaser-check-pkgs: - runs-on: ubuntu-latest - env: - DOCKER_CLI_EXPERIMENTAL: "enabled" - needs: [ goreleaser ] - if: github.ref == 'refs/heads/main' - strategy: - matrix: - format: [ deb, rpm, apk ] - steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 - with: - fetch-depth: 0 - - uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1 - with: - version: 3.x - repo-token: ${{ secrets.GITHUB_TOKEN }} - - uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2 - - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 - with: - path: | - ./_output/dist/*.deb - ./_output/dist/*.rpm - ./_output/dist/*.apk - key: ${{ github.ref }} - - run: task goreleaser:test:${{ matrix.format }} \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 2cad62c..0000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,34 +0,0 @@ -# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. -# -# You can adjust the behavior by modifying this file. -# For more information, see: -# https://github.com/actions/stale -name: Mark stale issues and pull requests - -on: - schedule: - - cron: '0 8 * * *' - -jobs: - stale: - - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - - steps: - - uses: actions/stale@v5 - with: - repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} - days-before-stale: 60 - days-before-close: 7 - stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.' - stale-pr-message: 'This issue is stale because it has been open 60 days with no activity.' - close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.' - close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity. You can reopen it if you want.' - stale-pr-label: lifecycle/stale - stale-issue-label: lifecycle/stale - exempt-issue-labels: 'openim' - exempt-pr-labels: 'openim' - exempt-draft-pr: true