Skip to content

Commit

Permalink
Merge pull request #34 from opsmill/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
opsmill-bot authored Nov 16, 2023
2 parents e264898 + 670a2aa commit f263bcb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 54 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/trigger-push-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,16 @@ concurrency: # Cancel any existing runs of this workflow for this same PR
cancel-in-progress: true

on:
workflow_dispatch:
push:
branches:
- stable

jobs:
docs:
uses: ./.github/workflows/workflow-docs.yml
secrets: inherit

changelog:
needs: ["docs"]
uses: ./.github/workflows/workflow-changelog.yml
changelog_and_docs:
uses: ./.github/workflows/workflow-changelog-and-docs.yml
secrets: inherit

release:
needs: ["changelog"]
uses: ./.github/workflows/workflow-release-drafter.yml
needs: ["changelog_and_docs"]
uses: ./.github/workflows/workflow-release-drafter.yml
secrets: inherit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# yamllint disable rule:truthy
name: "Update Changelog"
name: "Update Changelog & Documentation"

on:
workflow_call:
Expand All @@ -21,7 +21,7 @@ jobs:
python-version: 3.11

- name: Install antsibull-changelog, antsichaut
run: python -m pip install antsibull-changelog antsichaut --disable-pip-version-check
run: python -m pip install toml invoke antsibull-changelog antsichaut --disable-pip-version-check

- name: Install pandoc
run: sudo apt-get install pandoc
Expand All @@ -38,6 +38,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Generate Docs"
run: "invoke generate-doc"

- name: Generate new version in changelog.yaml
run: antsibull-changelog release -v --version "${{ steps.version.outputs.next-version }}"

Expand All @@ -50,13 +53,13 @@ jobs:
- name: Update Changelog.rst
run: antsibull-changelog generate -v

- name: push changelog
- name: commit changelog and docs
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.GH_INFRAHUB_BOT_TOKEN }}
push-branch: 'stable'
commit-message: 'chore: update changelog'
files: CHANGELOG.rst changelogs/
commit-message: 'chore: update changelog & docs'
files: docs/ CHANGELOG.rst changelogs/
name: opsmill-bot
email: [email protected]
rebase: true
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/workflow-docs.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/workflow-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,3 @@ jobs:
with:
api_key: "${{ secrets.INFRAHUB_GALAXY_API_TOKEN }}"
publish: "${{ inputs.publish }}"
build: false
collection_dir: "build"

0 comments on commit f263bcb

Please sign in to comment.