diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 7e42c47..f2ed02c 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -5,22 +5,22 @@ on: schedule: - cron: '10 1/3 * * *' - -# dessant/lock-threads locks closed issues, PRs and discussions. -permissions: - issues: write - pull-requests: write - discussions: write +permissions: {} jobs: lock: runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + issues: write + pull-requests: write env: YARN_ENABLE_SCRIPTS: false steps: - - uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836 + - uses: dessant/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # v6.0.2 with: github-token: ${{ github.token }} + process-only: 'issues, prs' issue-inactive-days: '7' issue-comment: > This thread has been automatically locked since there has not been diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml deleted file mode 100644 index 3c4ba2c..0000000 --- a/.github/workflows/push-master.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Master -on: - push: - branches: - - master - - -# Writes go through a separate bot token or app token; GITHUB_TOKEN stays read-only. -permissions: - contents: read - -jobs: - master: - if: "! startsWith(github.event.head_commit.message, '[CI Skip]')" - strategy: - matrix: - step: ['build:release'] - runs-on: ubuntu-latest - env: - YARN_ENABLE_SCRIPTS: false - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} - GH_PAT: ${{ secrets.GH_PAT_BOT }} - GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT_BOT }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.GH_PAT_BOT }} - - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - - name: ${{ matrix.step }} - run: | - yarn install --immutable - yarn ${{ matrix.step }}