forked from containers/ansible-podman-collections
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (53 loc) · 1.77 KB
/
collection-publish-dry-run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Collection release and publish DRY RUN
on:
push:
paths:
- '.github/workflows/collection-publish.yml'
- '.github/workflows/collection-publish-dry-run.yml'
- 'contrib/build.py'
- 'contrib/publish-requirements.txt'
- 'contrib/publish.sh'
branches:
- master
pull_request:
paths:
- '.github/workflows/collection-publish.yml'
- '.github/workflows/collection-publish-dry-run.yml'
- 'contrib/build.py'
- 'contrib/publish-requirements.txt'
- 'contrib/publish.sh'
schedule:
- cron: 3 0 * * * # Run daily at 0:03 UTC
jobs:
publish-collection-artifact-dry-run:
name: Publish
runs-on: ${{ matrix.runner-os }}
strategy:
matrix:
runner-os:
- ubuntu-22.04
ansible-version:
- git+https://github.com/ansible/[email protected]
runner-python-version:
- 3.9
steps:
- name: Check out ${{ github.repository }} on disk
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.runner-python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.runner-python-version }}
- name: Install Ansible ${{ matrix.ansible-version }}
run: |
python -m pip install virtualenv
python -m virtualenv /tmp/new-ansible
/tmp/new-ansible/bin/pip install '${{ matrix.ansible-version }}'
/tmp/new-ansible/bin/pip install -r contrib/publish-requirements.txt
- name: Generate a version from tag
run: >-
./contrib/publish.sh ${GITHUB_REF##*/}
env:
API_GALAXY_TOKEN: noreallykeyhere
GALAXY_PATH: /tmp/new-ansible/bin/ansible-galaxy
PYTHON_PATH: /tmp/new-ansible/bin/python
DRYRUN: 1