-
Notifications
You must be signed in to change notification settings - Fork 124
39 lines (36 loc) · 1.41 KB
/
update-versions.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
name: Update software versions
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
update-versions:
name: Update versions
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update versions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ci/update-versions.py
- name: Create commit
run: |
git config user.name 'CoreOS Bot'
git config user.email [email protected]
if ! git diff --quiet --exit-code; then
git commit -am "antora: update software versions ✨" \
-m "Triggered by update-versions GitHub Action."
fi
- name: Open pull request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.COREOSBOT_RELENG_TOKEN }}
branch: update-versions
push-to-fork: coreosbot-releng/fedora-coreos-docs
title: "antora: update software versions ✨"
body: "Created by update-versions [GitHub workflow](${{ github.server_url }}/${{ github.repository }}/actions/workflows/update-versions.yml) ([source](${{ github.server_url }}/${{ github.repository }}/blob/main/.github/workflows/update-versions.yml))."
committer: "CoreOS Bot <[email protected]>"
author: "CoreOS Bot <[email protected]>"