From 3810346040a3149632ce50f307cfbdfc1c3a5822 Mon Sep 17 00:00:00 2001 From: Marlon Moser Date: Tue, 29 Oct 2024 14:26:51 +0100 Subject: [PATCH] ci: use reusable workflows --- .github/workflows/galaxy.yml | 13 +++---------- .github/workflows/semantic-release.yml | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/semantic-release.yml diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml index 1f8d455..9c09ba4 100644 --- a/.github/workflows/galaxy.yml +++ b/.github/workflows/galaxy.yml @@ -1,18 +1,11 @@ --- -# -# Ansible managed -# - name: Release to Ansible Galaxy on: release: types: [created, edited, published, released] + jobs: release: - runs-on: ubuntu-20.04 - steps: - - name: galaxy - uses: robertdebock/galaxy-action@1.2.1 - with: - galaxy_api_key: ${{ secrets.galaxy_api_key }} + uses: adfinis/github-workflows-bareos/.github/workflows/ansible-role.yaml@v0.1.0 + secrets: inherit diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml new file mode 100644 index 0000000..a7cf072 --- /dev/null +++ b/.github/workflows/semantic-release.yml @@ -0,0 +1,15 @@ +--- +# runs on each push to main and is responsible for creating new tags/releases +name: Create Semantic Release + +on: + push: + branches: + - main + - master + +jobs: + semantic-release: + uses: adfinis/github-workflows-bareos/.github/workflows/semantic-release.yaml@v0.1.0 + secrets: + ADFINISBOT_GITHUB_TOKEN: ${{ secrets.ADFINISBOT_GITHUB_TOKEN }}