-
Notifications
You must be signed in to change notification settings - Fork 14
28 lines (27 loc) · 1018 Bytes
/
ruby-update.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
name: Regular .ruby-version update check
on:
schedule:
- cron: "5 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Extract the version of ruby
run: |
base="registry.access.redhat.com/ubi8/ubi-minimal"
docker run --rm -u 0 "${base}":latest sh -c "
microdnf module enable ruby:3.1 > /dev/null;
microdnf repoquery ruby --info | grep Version | awk '{ print \$3 }' | head -1 > .ruby-version;
cat .ruby-version" > .ruby-version
- name: Do change if the digest changed
run: |
git config user.name 'Update-a-Bot'
git config user.email '[email protected]'
git add .ruby-version
git commit -m "chore(devel): update .ruby-version" || echo "No new changes"
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
title: 'chore(devel): update .ruby-version'