Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(workflows): add
dependabot-dedupe
- dependabot/dependabot-core#5830 - partially replaces `dependabot-auto` Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- Loading branch information
1 parent
d2cd2d5
commit 8170104
Showing
8 changed files
with
83 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ sortbrk | |
sortcmt | ||
sortgrp | ||
stringafiable | ||
tohgarashi | ||
tryit | ||
tscu | ||
unstub | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Dependabot Dedupe | ||
# | ||
# Deduplicate dependencies for @dependabot. | ||
# | ||
# Note: This workflow can be removed once dependabot supports some type of automatic deduplication. | ||
# See https://github.com/dependabot/dependabot-core/issues/5830 for details. | ||
# | ||
# References: | ||
# | ||
# - https://docs.github.com/actions/learn-github-actions/contexts | ||
# - https://docs.github.com/actions/learn-github-actions/expressions | ||
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request | ||
# - https://docs.github.com/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions | ||
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request | ||
# - https://github.com/actions/checkout | ||
# - https://github.com/actions/create-github-app-token | ||
# - https://github.com/actions/setup-node | ||
# - https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#yarn2-configuration | ||
# - https://github.com/hmarr/debug-action | ||
# - https://github.com/tohgarashi/verified-commit | ||
|
||
--- | ||
name: dependabot-dedupe | ||
on: | ||
push: | ||
branches: | ||
- dependabot/npm_and_yarn/** | ||
paths: | ||
- package.json | ||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
jobs: | ||
dependabot-dedupe: | ||
if: github.actor == 'dependabot[bot]' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: debug | ||
name: Print environment variables and event payload | ||
uses: hmarr/debug-action@v2.1.0 | ||
- id: bot-token | ||
name: Get bot token | ||
uses: actions/create-github-app-token@v1.5.0 | ||
with: | ||
app-id: ${{ secrets.BOT_APP_ID }} | ||
private-key: ${{ secrets.BOT_PRIVATE_KEY }} | ||
- id: checkout | ||
name: Checkout ${{ github.ref_name }} | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
persist-credentials: false | ||
ref: ${{ github.ref }} | ||
token: ${{ steps.bot-token.outputs.token }} | ||
- id: node | ||
name: Setup Node.js | ||
uses: actions/setup-node@v3.8.1 | ||
with: | ||
cache: yarn | ||
cache-dependency-path: yarn.lock | ||
node-version-file: .nvmrc | ||
- id: dedupe | ||
name: Deduplicate dependencies | ||
env: | ||
GITHUB_TOKEN: ${{ steps.bot-token.outputs.token }} | ||
YARN_ENABLE_GLOBAL_CACHE: true | ||
YARN_ENABLE_IMMUTABLE_INSTALLS: false | ||
YARN_ENABLE_SCRIPTS: false | ||
run: yarn dedupe --mode=update-lockfile | ||
- id: commit | ||
name: Commit and push yarn.lock | ||
uses: tohgarashi/verified-commit@v2.1.0 | ||
env: | ||
GH_TOKEN: ${{ steps.bot-token.outputs.token }} | ||
with: | ||
commit-message: 'build(yarn): [dependabot skip] deduplicate dependencies for @dependabot' | ||
detect-changed: true | ||
ref: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# https://docs.npmjs.com/cli/configuring-npm/npmrc | ||
|
||
@flex-development:registry=https://npm.pkg.github.com | ||
//npm.pkg.github.com/:_authToken=${PAT_BOT} | ||
//npm.pkg.github.com/:_authToken=${PAT_REPO} | ||
//npm.pkg.github.com/:always-auth=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters