👷 Updates workflows with fallback token

This commit is contained in:
Alicia Sykes 2021-11-10 18:37:14 +00:00
parent e2e3f8b0b5
commit b0e6eff234
23 changed files with 37 additions and 37 deletions

View File

@ -10,4 +10,4 @@ jobs:
steps: steps:
- uses: logerfo/close-label@0.0.4 - uses: logerfo/close-label@0.0.4
with: with:
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}

View File

@ -12,4 +12,4 @@ jobs:
- name: Assign author - name: Assign author
uses: technote-space/assign-author@v1 uses: technote-space/assign-author@v1
with: with:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}

View File

@ -15,9 +15,9 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
fetch-depth: 0 fetch-depth: 0
- name: Rebase - name: Rebase
uses: cirrus-actions/rebase@1.4 uses: cirrus-actions/rebase@1.4
env: env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}

View File

@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: butlerlogic/action-autotag@stable - uses: butlerlogic/action-autotag@stable
with: with:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
strategy: package strategy: package
commit_message_template: "🔖 {{number}} {{message}} (by {{author}})\nSHA: {{sha}}\n." commit_message_template: "🔖 {{number}} {{message}} (by {{author}})\nSHA: {{sha}}\n."
mark-issue-fixed: mark-issue-fixed:
@ -22,5 +22,5 @@ jobs:
- name: Label Fixed Issues - name: Label Fixed Issues
uses: gh-bot/fix-labeler@master uses: gh-bot/fix-labeler@master
with: with:
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
label: '✅ Fixed' label: '✅ Fixed'

View File

@ -11,4 +11,4 @@ jobs:
steps: steps:
- uses: jenschelkopf/broadcast-action@master - uses: jenschelkopf/broadcast-action@master
with: with:
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}

View File

@ -9,7 +9,7 @@ jobs:
steps: steps:
- uses: wow-actions/potential-duplicates@v1 - uses: wow-actions/potential-duplicates@v1
with: with:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
filter: '' filter: ''
exclude: '[BUG] [QUESTION] [FEEDBACK] [SHOWCASE]' exclude: '[BUG] [QUESTION] [FEEDBACK] [SHOWCASE]'
label: '🕸️ Potential Duplicate' label: '🕸️ Potential Duplicate'

View File

@ -11,6 +11,6 @@ jobs:
- uses: mschilde/auto-label-merge-conflicts@master - uses: mschilde/auto-label-merge-conflicts@master
with: with:
CONFLICT_LABEL_NAME: "🚫 Merge Conflicts" CONFLICT_LABEL_NAME: "🚫 Merge Conflicts"
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
MAX_RETRIES: 5 MAX_RETRIES: 5
WAIT_MS: 5000 WAIT_MS: 5000

View File

@ -12,7 +12,7 @@ jobs:
- name: Automatically close issues that don't follow the issue template - name: Automatically close issues that don't follow the issue template
uses: lucasbento/auto-close-issues@v1.0.2 uses: lucasbento/auto-close-issues@v1.0.2
with: with:
github-token: ${{ secrets.BOT_GITHUB_TOKEN }} github-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
closed-issues-label: '🙁 Auto-Closed' closed-issues-label: '🙁 Auto-Closed'
issue-close-message: | issue-close-message: |
Hello @${issue.user.login} 👋 Hello @${issue.user.login} 👋

View File

@ -12,7 +12,7 @@ jobs:
- name: Close Stale Issues - name: Close Stale Issues
uses: actions/stale@v4 uses: actions/stale@v4
with: with:
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
days-before-stale: 30 days-before-stale: 30
days-before-close: 5 days-before-close: 5
operations-per-run: 30 operations-per-run: 30
@ -40,7 +40,7 @@ jobs:
- name: Close Issues without Response - name: Close Issues without Response
uses: actions/stale@v4 uses: actions/stale@v4
with: with:
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
days-before-stale: 5 days-before-stale: 5
days-before-close: 3 days-before-close: 3
operations-per-run: 30 operations-per-run: 30
@ -60,7 +60,7 @@ jobs:
- name: Notify Repo Owner to Respond - name: Notify Repo Owner to Respond
uses: actions/stale@v4 uses: actions/stale@v4
with: with:
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
days-before-stale: 7 days-before-stale: 7
days-before-close: 365 days-before-close: 365
operations-per-run: 30 operations-per-run: 30

View File

@ -20,7 +20,7 @@ jobs:
uses: peter-evans/create-pull-request@v3.10.1 uses: peter-evans/create-pull-request@v3.10.1
if: startsWith(github.head_ref, 'AUTO/') == false if: startsWith(github.head_ref, 'AUTO/') == false
with: with:
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
base: master base: master
commit-message: ':pencil2: Auto-fix typos in text' commit-message: ':pencil2: Auto-fix typos in text'
title: '[AUTO] Fix spelling and language' title: '[AUTO] Fix spelling and language'

View File

@ -21,7 +21,7 @@ jobs:
if: ${{ steps.check-domain.outputs.paid-till-days-left && steps.check-domain.outputs.paid-till-days-left < 30 }} if: ${{ steps.check-domain.outputs.paid-till-days-left && steps.check-domain.outputs.paid-till-days-left < 30 }}
uses: rishabhgupta/git-action-issue@v2 uses: rishabhgupta/git-action-issue@v2
with: with:
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
assignees: Lissy93 assignees: Lissy93
title: '[WEBSITE] Domain Expiring Soon' title: '[WEBSITE] Domain Expiring Soon'
body: > body: >
@ -33,7 +33,7 @@ jobs:
if: ${{ steps.check-domain.outputs.ssl-expire-days-left && steps.check-domain.outputs.ssl-expire-days-left < 14 }} if: ${{ steps.check-domain.outputs.ssl-expire-days-left && steps.check-domain.outputs.ssl-expire-days-left < 14 }}
uses: rishabhgupta/git-action-issue@v2 uses: rishabhgupta/git-action-issue@v2
with: with:
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
assignees: Lissy93 assignees: Lissy93
title: '[WEBSITE] SSL Cert Expiring Soon' title: '[WEBSITE] SSL Cert Expiring Soon'
body: > body: >

View File

@ -12,7 +12,7 @@ jobs:
steps: steps:
- uses: bubkoo/contributors-list@v1 - uses: bubkoo/contributors-list@v1
with: with:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
svgPath: docs/assets/CONTRIBUTORS.svg svgPath: docs/assets/CONTRIBUTORS.svg
affiliation: all affiliation: all
includeBots: false includeBots: false
@ -30,12 +30,12 @@ jobs:
- name: Generate Sponsors in Readme 💖 - name: Generate Sponsors in Readme 💖
uses: JamesIves/github-sponsors-readme-action@1.0.5 uses: JamesIves/github-sponsors-readme-action@1.0.5
with: with:
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
file: 'README.md' file: 'README.md'
- name: Generate Sponsors in Credits 💖 - name: Generate Sponsors in Credits 💖
uses: JamesIves/github-sponsors-readme-action@1.0.5 uses: JamesIves/github-sponsors-readme-action@1.0.5
with: with:
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
file: 'docs/credits.md' file: 'docs/credits.md'
# Job #3 - Update the Credits page # Job #3 - Update the Credits page
insert-credits: insert-credits:
@ -45,7 +45,7 @@ jobs:
- name: Contribute List - Credits Page - name: Contribute List - Credits Page
uses: akhilmhdh/contributors-readme-action@v2.2 uses: akhilmhdh/contributors-readme-action@v2.2
env: env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
with: with:
image_size: 80 image_size: 80
readme_path: docs/credits.md readme_path: docs/credits.md
@ -56,7 +56,7 @@ jobs:
- name: Sponsors List - Readme - name: Sponsors List - Readme
uses: akhilmhdh/contributors-readme-action@v2.2 uses: akhilmhdh/contributors-readme-action@v2.2
env: env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
with: with:
image_size: 80 image_size: 80
readme_path: README.md readme_path: README.md
@ -74,7 +74,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- uses: wow-actions/update-authors@v1 - uses: wow-actions/update-authors@v1
with: with:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
sort: commits sort: commits
bots: true bots: true
path: .github/AUTHORS.txt path: .github/AUTHORS.txt

View File

@ -19,7 +19,7 @@ jobs:
- name: close - name: close
uses: uhyo/please-star-first@v1 uses: uhyo/please-star-first@v1
with: with:
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
message: | message: |
Welcome to Dashy 👋 Welcome to Dashy 👋
It's great to have you here, but unfortunately your ticket has been closed to prevent spam. Before reopening this issue, please ensure the following criteria are met. It's great to have you here, but unfortunately your ticket has been closed to prevent spam. Before reopening this issue, please ensure the following criteria are met.

View File

@ -12,7 +12,7 @@ jobs:
steps: steps:
- uses: tomsun28/issues-translate-action@v2.5 - uses: tomsun28/issues-translate-action@v2.5
with: with:
BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
BOT_LOGIN_NAME: liss-bot BOT_LOGIN_NAME: liss-bot
IS_MODIFY_TITLE: true IS_MODIFY_TITLE: true
CUSTOM_BOT_NOTE: It looks like this issue isn't in English - not a problem, here's the translation! 🇬🇧 CUSTOM_BOT_NOTE: It looks like this issue isn't in English - not a problem, here's the translation! 🇬🇧

View File

@ -12,7 +12,7 @@ jobs:
- name: Label Issues - name: Label Issues
uses: adamzolyak/top-issues-action@master uses: adamzolyak/top-issues-action@master
env: env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
TOP_NUMBER_OF_ISSUES: 10 TOP_NUMBER_OF_ISSUES: 10
TOP_LABEL_NAME: "👍 Top 10 Issue!" TOP_LABEL_NAME: "👍 Top 10 Issue!"
TOP_LABEL_COLOR: FBCA04 TOP_LABEL_COLOR: FBCA04

View File

@ -12,6 +12,6 @@ jobs:
uses: actions-cool/issues-helper@v2 uses: actions-cool/issues-helper@v2
with: with:
actions: remove-labels actions: remove-labels
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
labels: '🚏 Awaiting User Response,⚰️ Stale,👤 Awaiting Maintainer Response' labels: '🚏 Awaiting User Response,⚰️ Stale,👤 Awaiting Maintainer Response'

View File

@ -13,7 +13,7 @@ jobs:
uses: actions-cool/issues-helper@v2 uses: actions-cool/issues-helper@v2
with: with:
actions: remove-labels actions: remove-labels
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
labels: '🚏 Awaiting User Response,⚰️ Stale' labels: '🚏 Awaiting User Response,⚰️ Stale'
@ -31,7 +31,7 @@ jobs:
uses: actions-cool/issues-helper@v2 uses: actions-cool/issues-helper@v2
with: with:
actions: add-labels actions: add-labels
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
labels: '👤 Awaiting Maintainer Response' labels: '👤 Awaiting Maintainer Response'
@ -43,6 +43,6 @@ jobs:
uses: actions-cool/issues-helper@v2 uses: actions-cool/issues-helper@v2
with: with:
actions: remove-labels actions: remove-labels
token: ${{ secrets.BOT_GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
labels: '👤 Awaiting Maintainer Response' labels: '👤 Awaiting Maintainer Response'

View File

@ -17,4 +17,4 @@ jobs:
- name: Profanity check step - name: Profanity check step
uses: tailaiw/mind-your-language-action@v1.0.3 uses: tailaiw/mind-your-language-action@v1.0.3
env: env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}

View File

@ -10,4 +10,4 @@ jobs:
uses: "alstr/todo-to-issue-action@v4.2" uses: "alstr/todo-to-issue-action@v4.2"
id: "todo" id: "todo"
with: with:
TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}

View File

@ -9,7 +9,7 @@ jobs:
steps: steps:
- uses: apexskier/github-release-commenter@v1 - uses: apexskier/github-release-commenter@v1
with: with:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
label-template: 🛩️ Released {release_tag}, 🔨 Fixed label-template: 🛩️ Released {release_tag}, 🔨 Fixed
comment-template: | comment-template: |
**The fix for this issue has now been released in {release_name} ✨** **The fix for this issue has now been released in {release_name} ✨**

View File

@ -46,7 +46,7 @@ jobs:
uses: lowlighter/metrics@latest uses: lowlighter/metrics@latest
with: with:
token: ${{ secrets.LISSY93_PAT }} token: ${{ secrets.LISSY93_PAT }}
committer_token: ${{ secrets.BOT_GITHUB_TOKEN }} committer_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
committer_branch: master committer_branch: master
committer_message: ':purple_heart: Adds repo metrics' committer_message: ':purple_heart: Adds repo metrics'
filename: docs/assets/repo-metrics.* filename: docs/assets/repo-metrics.*
@ -59,7 +59,7 @@ jobs:
uses: lowlighter/metrics@latest uses: lowlighter/metrics@latest
with: with:
token: ${{ secrets.LISSY93_PAT }} token: ${{ secrets.LISSY93_PAT }}
committer_token: ${{ secrets.BOT_GITHUB_TOKEN }} committer_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
committer_branch: master committer_branch: master
committer_message: ':purple_heart: Adds license metrics' committer_message: ':purple_heart: Adds license metrics'
filename: docs/assets/license-metrics.* filename: docs/assets/license-metrics.*
@ -76,7 +76,7 @@ jobs:
uses: lowlighter/metrics@latest uses: lowlighter/metrics@latest
with: with:
token: ${{ secrets.LISSY93_PAT }} token: ${{ secrets.LISSY93_PAT }}
committer_token: ${{ secrets.BOT_GITHUB_TOKEN }} committer_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
committer_branch: master committer_branch: master
committer_message: ':purple_heart: Adds contributor metrics' committer_message: ':purple_heart: Adds contributor metrics'
filename: docs/assets/controbutor-metrics.* filename: docs/assets/controbutor-metrics.*

View File

@ -12,4 +12,4 @@ jobs:
with: with:
repository: lissy93/dashy repository: lissy93/dashy
databranch: DATA/repo-stats databranch: DATA/repo-stats
ghtoken: ${{ secrets.BOT_GITHUB_TOKEN }} ghtoken: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}

View File

@ -13,7 +13,7 @@ jobs:
- name: Upload Docs to GH Wiki - name: Upload Docs to GH Wiki
uses: docker://decathlon/wiki-page-creator-action:latest uses: docker://decathlon/wiki-page-creator-action:latest
env: env:
GH_PAT: ${{ secrets.BOT_GITHUB_TOKEN }} GH_PAT: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
ACTION_MAIL: alicia-gh-bot@mail.as93.net ACTION_MAIL: alicia-gh-bot@mail.as93.net
ACTION_NAME: liss-bot ACTION_NAME: liss-bot
OWNER: Lissy93 OWNER: Lissy93