mirror of
https://github.com/kewlfft/ansible-aur.git
synced 2025-09-17 00:20:38 +03:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
37d4b45acd | ||
![]() |
ebb5e9aed1 | ||
![]() |
2ef95d29d6 | ||
![]() |
c58c59c63d | ||
![]() |
b2ed7c1dc6 | ||
![]() |
a2267b88a3 |
30
.github/workflows/galaxy.yml
vendored
30
.github/workflows/galaxy.yml
vendored
@@ -12,10 +12,10 @@ defaults:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout git repo
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
path: collections/ansible_collections/kewlfft/aur
|
||||
|
||||
@@ -23,31 +23,7 @@ jobs:
|
||||
id: version
|
||||
run: |
|
||||
[ "$(cat galaxy.yml | grep version: | awk '{print $2}')" = $(awk -F '/' '{print substr($3, 2)}' <<< ${GITHUB_REF}) ] || exit 1
|
||||
echo ::set-output name=version::$(awk -F '/' '{print substr($3, 2)}' <<< ${GITHUB_REF})
|
||||
|
||||
- name: "Set up Python"
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Generate cache keys
|
||||
id: keys
|
||||
run: |
|
||||
echo ::set-output name=pip_cache_dir::$(pip cache dir)
|
||||
# This ensures that the cache is invalidated after a week
|
||||
echo ::set-output name=date::$(date +%Y_%g)
|
||||
|
||||
- name: Pip Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.keys.outputs.pip_cache_dir }}
|
||||
key: ansible-pip-${{ steps.keys.outputs.date }}
|
||||
|
||||
- name: Install pip packages
|
||||
run: |
|
||||
pip3 install -U pip
|
||||
pip3 install wheel
|
||||
pip3 install ansible-core
|
||||
echo "version=$(awk -F '/' '{print substr($3, 2)}' <<< ${GITHUB_REF})" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Deploy collection
|
||||
run: |
|
||||
|
@@ -8,7 +8,7 @@ namespace: kewlfft
|
||||
name: aur
|
||||
|
||||
# The version of the collection. Must be compatible with semantic versioning
|
||||
version: 0.12.0
|
||||
version: 0.12.1
|
||||
|
||||
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||
readme: README.md
|
||||
|
Reference in New Issue
Block a user