Skip to content

Commit

Permalink
ci: use ansible-core version from the ansible release
Browse files Browse the repository at this point in the history
  • Loading branch information
gotmax23 committed Dec 3, 2023
1 parent c6559eb commit e8de1c3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/commit-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,18 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Get ansible-core version
id: ansible-core
env:
data_path: "../ansible-build-data/${{ inputs.major_version }}/ansible-${{ inputs.version }}.deps"
run: |
version="$(grep '^_ansible_version:' "${data_path}" | awk '{ print $2 }')"
echo "version=${version}" > "${GITHUB_OUTPUT}"
- name: Install deps
env:
ansible_core: "ansible-core==${{ steps.ansible-core.outputs.version }}"
run: |
pip install -r requirements.txt
pip install -r requirements.txt "${ansible_core}"
- name: Verify upstreams
continue-on-error: true
env:
Expand Down

0 comments on commit e8de1c3

Please sign in to comment.