-
Notifications
You must be signed in to change notification settings - Fork 104
45 lines (39 loc) · 1.02 KB
/
check-pr.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
name: Build Hugo and Check Title
on:
pull_request:
workflow_dispatch:
jobs:
hugo-build:
if: github.repository == 'htw-imi-showtime/showtime-website'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Get Theme
run: |
git submodule update --init themes/showtime-theme-2021
- name: Hugo setup
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.128.0'
extended: true
- name: Build
run: |
hugo \
--environment staging \
--baseURL "https://htw-imi-showtime.github.io/tryout/" \
--buildDrafts
check-title:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: false
fetch-depth: 1
- name: check pr title starts with project id or "STW"
id: extract_pid
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
./bin/check-project-update-pr/check-title.sh "$PR_TITLE"