Skip to content

Commit

Permalink
Dynamically generate branch tag
Browse files Browse the repository at this point in the history
  • Loading branch information
syndr committed Dec 24, 2024
1 parent 7e2a1a6 commit a4d3fac
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- devel
pull_request:
branches:
- main
Expand Down Expand Up @@ -36,13 +37,19 @@ jobs:
ansible-galaxy collection install --force syndr-molecule-*.tar.gz
- name: Test with molecule
env:
# Make molecule output colored content (easier to read via GH UI)
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
run: |
molecule test
- name: Create 'main' tag
- name: Create branch tag
uses: EndBug/latest-tag@latest
if: github.event_name == 'push'
with:
ref: main
ref: refs/tags/${{ github.ref }}
description: This tag is automatically generated on branch updates.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a4d3fac

Please sign in to comment.