From 80173ff966677a9fa09a782f48aee580b106fdbb Mon Sep 17 00:00:00 2001 From: Barry Gordon Date: Wed, 20 Apr 2022 11:59:32 +0100 Subject: [PATCH] Small correction to bump-version script --- README.md | 10 +++++----- bin/bump-version | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1404ba03..ea39cca7 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Extract information about the dependencies being updated by a Dependabot-generat ## Usage instructions -Create a workflow file that contains a step that uses: `dependabot/fetch-metadata@vv1.3.1`, e.g. +Create a workflow file that contains a step that uses: `dependabot/fetch-metadata@v1.3.1`, e.g. ```yaml -- .github/workflows/dependabot-prs.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Fetch Dependabot metadata id: dependabot-metadata - uses: dependabot/fetch-metadata@vv1.3.1 + uses: dependabot/fetch-metadata@v1.3.1 with: alert-lookup: true compat-lookup: true @@ -95,7 +95,7 @@ jobs: steps: - name: Dependabot metadata id: dependabot-metadata - uses: dependabot/fetch-metadata@vv1.3.1 + uses: dependabot/fetch-metadata@v1.3.1 - uses: actions/checkout@v3 - name: Approve a PR if not already approved run: | @@ -129,7 +129,7 @@ jobs: steps: - name: Dependabot metadata id: dependabot-metadata - uses: dependabot/fetch-metadata@vv1.3.1 + uses: dependabot/fetch-metadata@v1.3.1 - 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" @@ -158,7 +158,7 @@ jobs: steps: - name: Dependabot metadata id: dependabot-metadata - uses: dependabot/fetch-metadata@vv1.3.1 + uses: dependabot/fetch-metadata@v1.3.1 - 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" diff --git a/bin/bump-version b/bin/bump-version index 1873df19..557a6b59 100755 --- a/bin/bump-version +++ b/bin/bump-version @@ -22,7 +22,7 @@ fi new_version=$(npm version "${patch_level}" --no-git-tag-version) git checkout -b "${new_version}"-release-notes -sed -i.bak "s|dependabot/fetch-metadata@v[0-9.]*|dependabot/fetch-metadata@v${new_version}|g" "README.md" +sed -i.bak "s|dependabot/fetch-metadata@v[0-9.]*|dependabot/fetch-metadata@${new_version}|g" "README.md" rm README.md.bak git add package.json package-lock.json README.md git commit -m "${new_version}"