Skip to content

Commit

Permalink
ci: switch to reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
maxthier committed Oct 29, 2024
1 parent b45c760 commit b87571e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/collection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
api_key: ${{ secrets.GALAXY_API_KEY }}
uses: adfinis/github-workflows-bareos/.github/workflows/[email protected]
secrets:
galaxy_api_key: ${{ secrets.GALAXY_API_KEY }}
17 changes: 3 additions & 14 deletions .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
allow-initial-development-versions: true
github-token: ${{ secrets.ADFINISBOT_GITHUB_TOKEN }}
uses: adfinis/github-workflows-bareos/.github/workflows/[email protected]
secrets:
ADFINISBOT_GITHUB_TOKEN: ${{ secrets.ADFINISBOT_GITHUB_TOKEN }}

0 comments on commit b87571e

Please sign in to comment.