-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.14 KB
/
build.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
---
name: Build
on:
workflow_dispatch:
pull_request:
branches: ["main"]
jobs:
lint:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- name: Which branch?
shell: bash
run: |
echo "${{ github.head_ref || github.ref_name }}"
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
# step to install prerequis
- name: Install prerequis
shell: bash
run: |
make prerequis
- name: Run ansible-lint
uses: ansible/ansible-lint@main
update:
name: Update Versions
needs: lint
runs-on: ubuntu-latest
if: github.repository == 'mozebaltyk/rkub'
permissions:
actions: write
checks: write
contents: write
steps:
# Checkout on branch where pull request
- name: Which branch?
shell: bash
run: |
echo "${{ github.head_ref || github.ref_name }}"
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
- name: Update Readme and changelog
uses: ./.github/actions/update-readme