Skip to content

Check Dependencies #302

Check Dependencies

Check Dependencies #302

Workflow file for this run

---
name: Check Dependencies
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * 0'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: write-all
jobs:
check-deps:
name: Check Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: erlef/setup-beam@v1
with:
otp-version: '27'
rebar3-version: '3.25'
- uses: actions/cache@v5
with:
path: |
~/.cache/rebar3
_build
key: ${{ runner.os }}-erlang-${{ steps.setup-beam.outputs.otp-version }}-rebar3-${{ steps.setup-beam.outputs.rebar3-version }}-hash-${{hashFiles('rebar.lock')}}-${{hashFiles('rebar.config')}}
- name: Build
run: make build
- name: Update dependencies
id: update-deps
run: |
echo "Output of running \`rebar3 update-deps\`:" > /tmp/pr-body.md
echo "\`\`\`" > /tmp/pr-body.md
rebar3 update-deps --replace >> /tmp/pr-body.md
rebar3 upgrade --all >> /tmp/pr-body.md
rebar3 fmt --write
echo "\`\`\`" >> /tmp/pr-body.md
# We can always run this step because the action will exit silently if there are no changes.
# See: https://github.com/marketplace/actions/create-pull-request#action-behaviour
- name: Create PR
uses: peter-evans/create-pull-request@v8
with:
# By always using the same branch name, we can keep pushing to
# the same branch if there are new changes.
branch: "automatic-dependencies-update"
commit-message: "Update dependencies"
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
title: "Update dependencies"
body-path: /tmp/pr-body.md
labels: "dependencies,task"
delete-branch: true
sign-commits: true