Skip to content

Commit

Permalink
ci: add workflow to create core tags automatically
Browse files Browse the repository at this point in the history
Fixes: ansible#66
  • Loading branch information
gotmax23 committed Sep 11, 2024
1 parent 2043e2e commit 2e35a02
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Sync tags with ansible-core releases

"on":
workflow_dispatch:
inputs:
dry-run:
type: boolean
default: false
description: "Select to run the tag script in dry-run mode"
schedule:
- cron: "0 * * * *" # Hourly

jobs:
tag:
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- name: Check out us
uses: actions/checkout@v4
with:
path: ansible-documentation
fetch-depth: 0
- name: Check out core
uses: actions/checkout@v4
with:
repository: ansible/ansible
path: ansible
fetch-depth: 0
- name: Setup nox
uses: wntrblm/[email protected]
with:
python-versions: "3.12"
- name: Run tag script
run: nox -s tag -- tag ${{ inputs.dry-run && '--no-push' || '' }}
working-directory: ansible-documentation

0 comments on commit 2e35a02

Please sign in to comment.