Skip to content

Commit

Permalink
set concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed Mar 3, 2022
1 parent 09b9f0c commit 7734131
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 9 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/gitlab_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: act10ns/slack@v1
with:
status: starting
channel: "#ansible"
message: Starting buluma.openssh 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-openssh"
env:
Expand All @@ -18,3 +30,10 @@ jobs:
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
GITLAB_PROJECT_ID: "33576953"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Slack Notification
uses: act10ns/slack@v1
with:
status: "${{ job.status }}"
steps: "${{ toJson(steps) }}"
channel: "#ansible"
if: always()
9 changes: 6 additions & 3 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ on:
# Schedule updates (once daily)
schedule:
- cron: '29 15 * * *'
# Lines below let you run workflow manually and on each commit
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
Expand Down Expand Up @@ -59,7 +62,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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/requirements2png.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
on:
- push

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

name: Ansible Graphviz

jobs:
build:
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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ 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: "buluma/[email protected]"
id: "todo"
Expand Down
1 change: 0 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ galaxy:
script:
- ansible-galaxy role info buluma.openssh

# TODO: Reduce tests
role_testing_live:
script:
- image=${image} tag=${tag} ansible-galaxy install buluma.openssh
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7734131

Please sign in to comment.