Debian Codegraph @

ansible_collections/ibm/storage_virtualize/.github/workflows/galaxy-importer.yml

raw symbols SCIP
1 name: ibm.storage_virtualize Ansible galaxy importer CI
2 on:
3 push:
4 pull_request:
5 schedule:
6 - cron: '25 10 * * *'
7
8 jobs:
9 galaxy-importer:
10 name: Validate storage_virtualize with galaxy-importer tool.
11 runs-on: ubuntu-latest
12 strategy:
13 fail-fast: false
14 steps:
15 - name: Check out code
16 uses: actions/checkout@v2
17
18 - name: Set up Python3
19 uses: actions/setup-python@v2
20 with:
21 python-version: 3.9
22
23 - name: Upgrade PIP
24 run: python3.9 -m pip install --upgrade pip
25
26 - name: Install ansible
27 run: python3.9 -m pip install ansible --disable-pip-version-check
28
29 - name: Install galaxy-importer tool
30 run: python3.9 -m pip install galaxy_importer --disable-pip-version-check
31
32 - name: Make directory to sync
33 run: |
34 pwd
35 mkdir -p ansible_collections/ibm/storage_virtualize
36 rsync -av . ansible_collections/ibm/storage_virtualize --exclude ansible_collections/ibm/storage_virtualize
37
38 - name: Build the tar package
39 run: ansible-galaxy collection build
40 working-directory: ./ansible_collections/ibm/storage_virtualize
41
42 - name: Run galaxy-importer tool on storage_virtualize
43 run: |
44 export GALAXY_IMPORTER_CONFIG=$(readlink -f galaxy-importer.cfg)
45 env | grep galaxy
46 python3.9 -m galaxy_importer.main ibm-storage_virtualize-*.tar.gz
47 working-directory: ./ansible_collections/ibm/storage_virtualize