Release 1.0.3 #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |