Skip to content

Commit 95a9c76

Browse files
committed
Rework workflows
1 parent 3759ffb commit 95a9c76

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
name: Publish
3+
4+
# Controls when the action will run.
5+
on:
6+
create:
7+
tags:
8+
- "[0-9]+.[0-9]+.[0-9]+"
9+
workflow_dispatch:
10+
11+
jobs:
12+
galaxy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# Checks-out the repository under $GITHUB_WORKSPACE, so it's accessible to the job
17+
- uses: actions/checkout@v2
18+
19+
- name: Injecting a dynamic Collection version
20+
uses: artis3n/ansible_galaxy_collection@v2
21+
with:
22+
api_key: '${{ secrets.GALAXY_API_KEY }}'
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11

2-
name: CI
2+
name: Tests
33

44
# Controls when the action will run.
5-
on:
6-
# Triggers the workflow on push or pull request events but only for the master branch
7-
push:
8-
branches: [ master ]
9-
pull_request:
10-
branches: [ master ]
11-
12-
# Allows you to run this workflow manually from the Actions tab
13-
workflow_dispatch:
5+
on: pull_request
146

157
jobs:
168
lint:

0 commit comments

Comments
 (0)