diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index ff84d72..f39857b 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -27,6 +27,6 @@ version-resolver: - 'patch' default: patch template: | - ## Changes + ## Rifle, Rifle, Rifle! $CHANGES diff --git a/.github/workflows/gitlab_trigger.yml b/.github/workflows/gitlab_trigger.yml index eb1f0c4..b1646d9 100644 --- a/.github/workflows/gitlab_trigger.yml +++ b/.github/workflows/gitlab_trigger.yml @@ -3,13 +3,25 @@ name: Mirror and run GitLab CI on: [push] +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest + env: + SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}" steps: - - uses: actions/checkout@v2.4.0 + - uses: act10ns/slack@v1 + with: + status: starting + channel: "#ansible" + message: Starting buluma.haproxy GitLab Trigger... + if: always() + - uses: actions/checkout@v3 - name: Mirror + trigger CI - uses: SvanBoxel/gitlab-mirror-and-ci-action@master + uses: buluma/gitlab-mirror-ci-action@1.0.6 with: args: "buluma/ansible-role-haproxy" env: @@ -18,3 +30,10 @@ jobs: GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} GITLAB_PROJECT_ID: "33687713" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Slack Notification + uses: act10ns/slack@v1 + with: + status: "${{ job.status }}" + steps: "${{ toJson(steps) }}" + channel: "#ansible" + if: always() diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index 85c7499..a59219b 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -6,22 +6,22 @@ name: Ansible Molecule on: - push: - branches: - - '**' - tags-ignore: - - '*' - pull_request: + # Schedule updates (once daily) schedule: - cron: '15 8 * * *' workflow_dispatch: + push: {branches: ["master", "main", "testing"]} + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true jobs: lint: runs-on: ubuntu-20.04 steps: - name: checkout - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v3 with: path: "${{ github.repository }}" - name: molecule @@ -58,7 +58,7 @@ jobs: tag: "focal" steps: - name: checkout - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v3 with: path: "${{ github.repository }}" - name: disable apparmor for mysql diff --git a/.github/workflows/release_drafter.yml b/.github/workflows/release_drafter.yml index 1dd7d67..733f8d6 100644 --- a/.github/workflows/release_drafter.yml +++ b/.github/workflows/release_drafter.yml @@ -1,4 +1,8 @@ --- +# +# Ansible managed +# + name: Release Drafter on: diff --git a/.github/workflows/requirements2png.yml b/.github/workflows/requirements2png.yml index bdb0174..5d4b706 100644 --- a/.github/workflows/requirements2png.yml +++ b/.github/workflows/requirements2png.yml @@ -6,6 +6,10 @@ on: - push +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + name: Ansible Graphviz jobs: @@ -13,7 +17,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: checkout - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v3 with: path: ${{ github.repository }} - name: create png diff --git a/.github/workflows/todo.yml b/.github/workflows/todo.yml index d944733..007ba19 100644 --- a/.github/workflows/todo.yml +++ b/.github/workflows/todo.yml @@ -8,13 +8,18 @@ name: "TODO 2 Issue" on: push: +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: build: runs-on: "ubuntu-20.04" steps: - - uses: "actions/checkout@v2.4.0" + - uses: "actions/checkout@v3" - name: "TODO to Issue" - uses: "alstr/todo-to-issue-action@v4.6" + uses: "buluma/todo-to-issue-action@v1.0.1" id: "todo" with: - TOKEN: ${{ secrets.GITHUB_TOKEN }} + USER_PROJECTS: $buluma/Ansible/To do + PROJECTS_SECRET: ${{ secrets.PROJECTS_SECRET }} diff --git a/LICENSE b/LICENSE index 915ea54..b24ef60 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ Apache License - Version 2.0, 02 2022 + Version 2.0, 03 2022 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -187,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2022 Michael Buluma (me@buluma.co.ke) + Copyright 2022 Michael Buluma (me@buluma.me.ke) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.