Skip to content

Commit

Permalink
Upgrade dependabot PR action. (#460)
Browse files Browse the repository at this point in the history
* Upgrade dependabot PR action.

Signed-off-by: dblock <dblock@amazon.com>

* Update version from properties.

Signed-off-by: dblock <dblock@amazon.com>

---------

Signed-off-by: dblock <dblock@amazon.com>
  • Loading branch information
dblock authored May 1, 2023
1 parent 1f99ffa commit ff2f70c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/dependabot_pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: Dependabot PR actions
on: pull_request
on:
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled

jobs:
dependabot:
Expand All @@ -22,10 +29,14 @@ jobs:
with:
token: ${{ steps.github_app_token.outputs.token }}

- id: version
run: |
echo "::set-output name=version::$(cat gradle.properties | grep systemProp.version | cut -d' ' -f3 | cut -d\. -f1,2)"
- name: Update the changelog
uses: dangoslen/dependabot-changelog-helper@v1
uses: dangoslen/dependabot-changelog-helper@v2
with:
version: 'Unreleased'
version: "Unreleased ${{ steps.version.outputs.version }}"

- name: Commit the changes
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down

0 comments on commit ff2f70c

Please sign in to comment.