Skip to content

Commit

Permalink
release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe.caron committed Jun 13, 2024
1 parent 1f7a718 commit 4a0dec3
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,55 +11,6 @@ on:
# branches: [ "main" ]

jobs:
lint:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- name: Which branch?
shell: bash
run: |
echo "${{ github.head_ref || github.ref_name }}"
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}

# step to install prerequis
- name: Install prerequis
shell: bash
run: |
make prerequis
- name: Run ansible-lint
uses: ansible/ansible-lint@main

update-version:
name: Update Versions
needs: lint
runs-on: ubuntu-latest

if: github.repository == 'mozebaltyk/ansicolt'
permissions:
actions: write
checks: write
contents: write

steps:
# Checkout on branch where pull request
- name: Which branch?
shell: bash
run: |
echo "${{ github.head_ref || github.ref_name }}"
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}

# This one is redondant with renovate but make sure
# that all versions are updated before to release!
- name: Update version in readme and changelog
uses: ./.github/actions/update-version

release:
name: Release to Galaxy
needs: update-version
Expand Down

0 comments on commit 4a0dec3

Please sign in to comment.