Skip to content

Commit

Permalink
Merge pull request #210 from dependabot/v1.3.1-release-notes
Browse files Browse the repository at this point in the history
v1.3.1 Release Notes
  • Loading branch information
brrygrdn authored Apr 20, 2022
2 parents 58f09fc + 80173ff commit bfac3fa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected].0`, e.g.
Create a workflow file that contains a step that uses: `dependabot/[email protected].1`, e.g.

```yaml
-- .github/workflows/dependabot-prs.yml
Expand All @@ -22,7 +22,7 @@ jobs:
steps:
- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected].0
uses: dependabot/[email protected].1
with:
alert-lookup: true
compat-lookup: true
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected].0
uses: dependabot/[email protected].1
- uses: actions/checkout@v3
- name: Approve a PR if not already approved
run: |
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected].0
uses: dependabot/[email protected].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"
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected].0
uses: dependabot/[email protected].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"
Expand Down
2 changes: 1 addition & 1 deletion bin/bump-version
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dependabot-pull-request-action",
"version": "1.3.0",
"version": "1.3.1",
"description": "Parse Dependabot commit metadata to automate PR handling",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit bfac3fa

Please sign in to comment.