WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Check Dependencies

Check Dependencies #72

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@v5
- uses: erlef/setup-beam@v1
with:
otp-version: '27'
rebar3-version: '3.24'
- uses: actions/cache@v4
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@v7
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