Skip to content

Commit

Permalink
Update rebar.lock on rebar.config updates (by Renovate) (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira authored Jun 25, 2024
1 parent 5f1ecd7 commit 1846b14
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/rebar-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Update dependencies

"on":
push:
branches:
- main
pull_request:
branches:
- "*"
workflow_dispatch: {}

jobs:
update:
name: Update rebar.lock

if: "${{ github.ref == 'refs/heads/renovate/rebar.config-deps' }}"

runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- uses: erlef/setup-beam@0a541161e47ec43ccbd9510053c5f336ca76c2a2 # v1.17.6
with:
version-type: strict
version-file: .tool-versions

- run: |
rebar3 upgrade --all
if ! git diff --exit-code >/dev/null; then
# there's stuff to push
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add rebar.lock
git commit -m "[automation] update \`rebar.lock\` after Renovate"
git push
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1846b14

Please sign in to comment.