Skip to content

Commit

Permalink
Default github-token
Browse files Browse the repository at this point in the history
  • Loading branch information
jablko committed Aug 23, 2021
1 parent 27341db commit 223a12d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/dependabot-auto-merge.yml
Expand Up @@ -14,8 +14,6 @@ jobs:
- name: Fetch metadata
id: metadata
uses: ./
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Auto-merge
run: gh pr merge --auto --merge "$PR_URL"
Expand Down
8 changes: 0 additions & 8 deletions README.md
Expand Up @@ -23,8 +23,6 @@ jobs:
- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
```

Subsequent actions will have access to the following outputs:
Expand Down Expand Up @@ -63,8 +61,6 @@ jobs:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
Expand Down Expand Up @@ -93,8 +89,6 @@ jobs:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{contains(steps.dependabot-metadata.outputs.dependency-names, 'rails') && steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL"
Expand Down Expand Up @@ -124,8 +118,6 @@ jobs:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Add a label for all production dependencies
if: ${{ steps.dependabot-metadata.outputs.dependency-type == 'direct:production' }}
run: gh pr edit "$PR_URL" --add-label "production"
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -6,7 +6,7 @@ branding:
inputs:
github-token:
description: 'The GITHUB_TOKEN secret'
required: true
default: ${{ github.token }}
outputs:
dependency-names:
description: 'A comma-separated list of all package names updated.'
Expand Down

0 comments on commit 223a12d

Please sign in to comment.