mirror of https://github.com/Lissy93/dashy.git
🔨 Fallsback to auto auth when PAT not set (#321)
This commit is contained in:
parent
c5dea1e1df
commit
807112c0de
|
@ -24,4 +24,4 @@ jobs:
|
||||||
uses: peaceiris/actions-label-commenter@v1
|
uses: peaceiris/actions-label-commenter@v1
|
||||||
with:
|
with:
|
||||||
config_file: .github/issue-auto-comments.yml
|
config_file: .github/issue-auto-comments.yml
|
||||||
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
- name: Yarn Lock Changes
|
- name: Yarn Lock Changes
|
||||||
uses: Simek/yarn-lock-changes@main
|
uses: Simek/yarn-lock-changes@main
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
collapsibleThreshold: '25'
|
collapsibleThreshold: '25'
|
||||||
failOnDowngrade: 'false'
|
failOnDowngrade: 'false'
|
||||||
path: 'yarn.lock'
|
path: 'yarn.lock'
|
||||||
|
|
|
@ -12,16 +12,16 @@ jobs:
|
||||||
- name: Get Compressed Size
|
- name: Get Compressed Size
|
||||||
uses: preactjs/compressed-size-action@v2
|
uses: preactjs/compressed-size-action@v2
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
pattern: './dist/**/*.{js,css,html}'
|
pattern: './dist/**/*.{js,css,html}'
|
||||||
strip-hash: '[-|.](\w{32}|\w{8}).'
|
strip-hash: '\\b\\w{8}\\.'
|
||||||
exclude: '{./dist/manifest.json,**/*.map,**/node_modules/**}'
|
exclude: '{./dist/manifest.json,**/*.map,**/node_modules/**}'
|
||||||
minimum-change-threshold: 100
|
minimum-change-threshold: 100
|
||||||
# Check number of lines of code added
|
# Check number of lines of code added
|
||||||
- name: Label based on Lines of Code
|
- name: Label based on Lines of Code
|
||||||
uses: codelytv/pr-size-labeler@v1
|
uses: codelytv/pr-size-labeler@v1
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
xs_max_size: '10'
|
xs_max_size: '10'
|
||||||
s_max_size: '100'
|
s_max_size: '100'
|
||||||
m_max_size: '500'
|
m_max_size: '500'
|
||||||
|
|
|
@ -24,4 +24,4 @@ jobs:
|
||||||
- uses: ddradar/lgtm-action@v1
|
- uses: ddradar/lgtm-action@v1
|
||||||
with:
|
with:
|
||||||
image-url: ${{ steps.act.outputs.selected }}
|
image-url: ${{ steps.act.outputs.selected }}
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
@ -7,7 +7,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: exercism/pr-commenter-action@v1.3.0
|
- uses: exercism/pr-commenter-action@v1.3.0
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
github-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
config-file: .github/pr-auto-comments.yml
|
config-file: .github/pr-auto-comments.yml
|
||||||
template-variables: |
|
template-variables: |
|
||||||
{ "prAuthor": "${{ github.event.pull_request.user.login }}" }
|
{ "prAuthor": "${{ github.event.pull_request.user.login }}" }
|
||||||
|
|
|
@ -13,5 +13,5 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: wow-actions/unfurl-links@v1
|
- uses: wow-actions/unfurl-links@v1
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
raw: true
|
raw: true
|
||||||
|
|
Loading…
Reference in New Issue