-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.35 KB
/
collection.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
---
name: Deploy Collection
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run read-yaml action
id: yaml-data
uses: jbutcher5/[email protected]
with:
file: "./galaxy.yml"
key-path: '["version"]'
- name: Bump release version
id: bump_version
uses: christian-draeger/[email protected]
with:
current-version: "${{ steps.yaml-data.outputs.data }}"
version-fragment: "bug"
- name: Update values.yaml
uses: fjogeleit/yaml-update-action@main
with:
valueFile: "galaxy.yml"
propertyPath: "version"
value: "${{ steps.bump_version.outputs.next-version }}"
commitChange: true
message: "update galaxy.yml version"
branch: main
createPR: false
masterBranchName: main
- name: Build and Deploy Collection
uses: artis3n/ansible_galaxy_collection@v2
with:
api_key: "${{ secrets.GALAXY_API_KEY }}"
galaxy_version: "${{ steps.bump_version.outputs.next-version }}"
publish: true
build: true
- name: Read file contents
id: read_file
uses: andstor/file-reader-action@v1
with:
path: "galaxy.yml"