From e7c62683af474a7977ff7d6868bad6cc0508828c Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Wed, 11 Sep 2024 00:36:05 -0500 Subject: [PATCH] ci: add workflow to create core tags automatically Fixes: https://github.com/ansible/ansible-documentation/issues/66 --- .github/workflows/tag.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/tag.yml diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 00000000000..b40a7a70909 --- /dev/null +++ b/.github/workflows/tag.yml @@ -0,0 +1,31 @@ +--- +name: Sync tags with ansible-core releases + +"on": + workflow_dispatch: + 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/nox@2024.04.15 + with: + python-versions: "3.12" + - name: Run tag script + run: nox -s tag