Skip to content

Commit

Permalink
fix: tokens and triggers (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianhaoz95 authored Mar 3, 2022
1 parent e85ef45 commit eda6b1e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/rubocop-analysis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit eda6b1e

Please sign in to comment.