diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 3d83cc1..09d681b 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -7,6 +7,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: hmarr/auto-approve-action@v2.1.0 - if: github.actor == 'dependabot[bot]' || github.actor == 'allcontributors[bot]' + if: | + github.actor == 'dependabot[bot]' || + github.actor == 'allcontributors[bot]' || + github.actor == 'tianhaoz95' with: github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f81a256..8351d21 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PACKAGE_REGISTRY_TOKEN }} - uses: actions/setup-node@v3 with: node-version: "14" @@ -39,7 +39,7 @@ jobs: GIT_AUTHOR_EMAIL: tianhaoz@umich.edu GIT_COMMITTER_NAME: tianhaoz95 GIT_COMMITTER_EMAIL: tianhaoz@umich.edu - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PACKAGE_REGISTRY_TOKEN }} GEM_HOST_API_KEY: ${{ secrets.RUBY_GEMS_TOKEN }} - name: setup release credentials env: diff --git a/.github/workflows/rubocop-analysis.yml b/.github/workflows/rubocop-analysis.yml index cdf54e6..626fdb2 100644 --- a/.github/workflows/rubocop-analysis.yml +++ b/.github/workflows/rubocop-analysis.yml @@ -1,15 +1,13 @@ name: Code Scan on: pull_request: - types: [opened, reopened, synchronize, labeled] + branches: + - master schedule: - cron: "0 3 * * *" jobs: rubocop: runs-on: ubuntu-latest - if: | - github.actor == 'dependabot[bot]' || - contains(github.event.pull_request.labels.*.name, 'safe to test') steps: - name: Checkout repository uses: actions/checkout@v3