From b87571ed9917c6b08478eac6ceb5ca5df4b66752 Mon Sep 17 00:00:00 2001 From: Marlon Moser Date: Tue, 29 Oct 2024 13:59:23 +0100 Subject: [PATCH] ci: switch to reusable workflows --- .github/workflows/collection.yaml | 19 +++---------------- .github/workflows/semantic-release.yaml | 17 +++-------------- 2 files changed, 6 insertions(+), 30 deletions(-) diff --git a/.github/workflows/collection.yaml b/.github/workflows/collection.yaml index b0f481b..a3490ca 100644 --- a/.github/workflows/collection.yaml +++ b/.github/workflows/collection.yaml @@ -9,19 +9,6 @@ on: jobs: deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout repository and submodules - uses: actions/checkout@v4 - with: - submodules: 'true' - - - name: Set version in galaxy.yml - run: | - VERSION=${GITHUB_REF#refs/tags/v} - sed -re "s/^version:.*$/version: ${VERSION}/" -i galaxy.yml - - - name: Upload collection to Ansible Galaxy - uses: ansible/ansible-publish-action@v1.0.0 - with: - api_key: ${{ secrets.GALAXY_API_KEY }} + uses: adfinis/github-workflows-bareos/.github/workflows/ansible-collection.yaml@v0.1.0 + secrets: + galaxy_api_key: ${{ secrets.GALAXY_API_KEY }} diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml index 119cf04..13c39fe 100644 --- a/.github/workflows/semantic-release.yaml +++ b/.github/workflows/semantic-release.yaml @@ -9,17 +9,6 @@ on: jobs: semantic-release: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Run go-semantic-release - id: semrel - uses: go-semantic-release/action@v1.23 - with: - allow-initial-development-versions: true - github-token: ${{ secrets.ADFINISBOT_GITHUB_TOKEN }} + uses: adfinis/github-workflows-bareos/.github/workflows/semantic-release.yaml@v0.1.0 + secrets: + ADFINISBOT_GITHUB_TOKEN: ${{ secrets.ADFINISBOT_GITHUB_TOKEN }}