-
Notifications
You must be signed in to change notification settings - Fork 23
57 lines (50 loc) · 1.72 KB
/
release-automation.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
54
55
56
57
name: Release Automation
on:
push:
branches:
- main
workflow_dispatch:
jobs:
update-release-draft:
name: Update Release Draft
runs-on: ubuntu-latest
outputs:
version-tag: ${{ steps.drafter.outputs.tag_name }}
steps:
- uses: release-drafter/release-drafter@v5
id: drafter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
bump-galaxy-version:
name: Update collection version
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs:
- update-release-draft
steps:
- name: Check out codebase
uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: "3"
- name: Set up pip and install requirements
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run updater script
run: scripts/update-version "${{ needs.update-release-draft.outputs.version-tag }}"
- name: Open PR for collection version update
uses: peter-evans/create-pull-request@v5
with:
add-paths: |
galaxy.yml
plugins/module_utils/constants.py
title: Update version to ${{ needs.update-release-draft.outputs.version-tag }}
body: |
This PR updates the galaxy.yml (and eventual other files) version to keep up with recently merged changes.
This PR was created automatically by the release-automation workflow.
commit-message: "Update version to ${{ needs.update-release-draft.outputs.version-tag }}"
branch: maintenance/version-bump
labels: pr-nochangelog
delete-branch: true