-
Notifications
You must be signed in to change notification settings - Fork 32
71 lines (61 loc) · 2.19 KB
/
bump-academy-version.yml
File metadata and controls
71 lines (61 loc) · 2.19 KB
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
name: Upgrade Academies
on:
release:
types: [published]
workflow_dispatch:
jobs:
bump:
runs-on: ubuntu-latest
strategy:
matrix:
dependent-repo:
- layer5io/layer5-academy
- layer5io/exoscale-academy
- layer5io/academy-build
- layer5io/academy-example
- meshery-extensions/meshery-academy
- layer5io/digitalocean-academy
steps:
- name: Setup Hugo (Extended)
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.158.0'
extended: true
- name: Checkout academy-theme code
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Checkout dependent repo
uses: actions/checkout@v4
with:
repository: ${{ matrix.dependent-repo }}
token: ${{ secrets.GH_ACCESS_TOKEN }}
path: dependent
ref: master
- name: Update dependency in go.mod
run: |
cd dependent
make theme-update
# go mod edit -require=github.com/layer5io/academy-theme@${{ github.event.release.tag_name }}
# go mod tidy
- name: Create Pull pull-requests
uses: peter-evans/create-pull-request@v7
with:
path: dependent
token: ${{ secrets.GH_ACCESS_TOKEN }}
branch: update-academy-theme-${{ github.event.release.tag_name }}
title: '[Automated] Update academy-theme to ${{ github.event.release.tag_name }}'
body: |
This PR updates the academy-theme dependency to the latest release version ${{ github.event.release.tag_name }}.
Changes:
- Updated go.mod
- Regenerated go.sum
Auto-generated based upon release of a new version of layer5io/academy-theme.
commit-message: Update academy-theme to ${{ github.event.release.tag_name }}
committer: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: true
delete-branch: true
labels: pr/dependencies
assignees: l5io
draft: false