-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (69 loc) · 2.08 KB
/
bump.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Check for Cargo dependencies updates, and automatically open a Pull Request
# if updates are found.
name: "bump.yml"
on:
workflow_dispatch:
inputs:
debug_enabled:
type: "boolean"
description: "Run with tmate enabled"
required: false
default: false
schedule:
# Check for updates at 3:18am every day.
# I avoid midnight because everyone uses midnight and
# I don't need to contribute to load spikes.
- cron: "18 3 * * *"
concurrency:
group: "${{ github.workflow }}:${{ github.ref }}"
cancel-in-progress: true
permissions:
contents: "write"
packages: "read"
id-token: "write"
pull-requests: "write"
jobs:
update:
runs-on: "ubuntu-latest"
steps:
- name: "login to ghcr.io"
uses: "docker/login-action@v3"
with:
registry: "ghcr.io"
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "install rust"
uses: "dtolnay/rust-toolchain@stable"
- uses: "cargo-bins/cargo-binstall@main"
- name: "install cargo-deny"
run: |
cargo binstall --no-confirm cargo-deny
- name: "deny check"
run: |
cargo deny check
- name: "install envsubst"
run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends gettext
- run: |
./scripts/update-versions.sh
- name: "Create Pull Request"
uses: "peter-evans/create-pull-request@v7"
with:
branch: "bump/dpdk-sys"
title: "bump/dpdk-sys"
labels: |
automated
dependencies
signoff: "true"
commit-message: "bump/dpdk-sys"
sign-commits: "true"
body: "bump dpdk-sys"
- name: "Setup tmate session for debug"
if: ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
uses: "mxschmitt/action-tmate@v3"
timeout-minutes: 60
with:
limit-access-to-actor: true