Skip to content
Snippets Groups Projects
Commit 3042d96d authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

ci: update workflows

parent 0ca26579
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,8 @@ jobs:
strategy:
max-parallel: 2
matrix:
ansible: ["9", "latest"]
ansible: ["9", "10"]
python: ["3.10", "3.12"]
steps:
- name: Check out the codebase
......@@ -33,7 +34,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "${{ matrix.python }}"
cache: "pip"
cache-dependency-path: .requirements/${{ matrix.ansible }}.txt
......
......@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Rebase all pull requests on push to the main branch
uses: peter-evans/rebase@v3.0.0
uses: peter-evans/rebase@v3.1.0
with:
base: main
exclude-drafts: true
......
name: Update from template
"on":
schedule:
- cron: "00 00 * * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
merge:
name: Update from template
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.6
with:
token: ${{ secrets.PAT }}
fetch-depth: 0
- name: Run update script
run: bash update.sh
- name: Commit changes back to repository
uses: EndBug/add-and-commit@v9.1.4
with:
commit: --signoff
default_author: github_actor
fetch: true
message: 'ci: update from template'
# Requirements for ansible 10
ansible >=10, <11
ansible-lint
# Requirements for ansible stable
# Requirements for ansible 9
ansible >=9, <10
ansible-lint
# Requirements for ansible latest
ansible
ansible-lint
......@@ -5,15 +5,13 @@ git \
https://github.com/dmitriysafronov/ansible_role-template.git \
.update
if [[ -s .update/update.list ]]; then
rsync -av \
--include=.github/ \
--include=.github/workflows/ \
--include=.github/workflows/lint.yaml \
--include=.requirements/* \
--include=update.sh \
--include-from=.update/update.list \
--exclude=* \
--delete-after \
.update/ \
./
fi
rm -rf .update/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment