diff --git a/.github/workflows/ansible-integration-tests.yml b/.github/workflows/ansible-integration-tests.yml index e71730a7..c7c63c84 100644 --- a/.github/workflows/ansible-integration-tests.yml +++ b/.github/workflows/ansible-integration-tests.yml @@ -26,13 +26,13 @@ jobs: - stable-2.15 steps: - name: check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: ansible_collections/google/cloud - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: - python-version: "3.9" # this is the minimum version required for Ansible 2.13 + python-version: '3.9' # this is the minimum version required for Ansible 2.15 - name: Install dependencies run: pip install -r requirements.txt - name: Install ansible-base (${{ matrix.ansible_version }}) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index eb6ee9c9..26078e86 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -2,7 +2,7 @@ name: Run tests for the cloud.google collection on: [pull_request] env: - PYTHON_VERSION: "3.9" # minimum version for Ansible 2.14 + PYTHON_VERSION: "3.9" # minimum version for Ansible 2.15 jobs: sanity-and-lint: runs-on: ubuntu-latest @@ -16,11 +16,11 @@ jobs: - stable-2.15 steps: - name: check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: ansible_collections/google/cloud - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ env.PYTHON_VERSION }} # Automation-hub requires python2.7 sanity tests @@ -53,11 +53,11 @@ jobs: - stable-2.15 steps: - name: check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: ansible_collections/google/cloud - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ env.PYTHON_VERSION }} - name: Install dependencies diff --git a/.github/workflows/automationhub.yml b/.github/workflows/automationhub.yml index d3096147..6adb1380 100644 --- a/.github/workflows/automationhub.yml +++ b/.github/workflows/automationhub.yml @@ -8,18 +8,18 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: 3.x - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install ansible - - name: Build and publish - env: - ANSIBLE_AUTOMATION_HUB_API_KEY: ${{ secrets.ANSIBLE_AUTOMATION_HUB_API_KEY }} - run: | - ansible-galaxy collection build . - ansible-galaxy collection publish *.tar.gz --api-key=$ANSIBLE_AUTOMATION_HUB_API_KEY -s=https://cloud.redhat.com/api/automation-hub/ + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install ansible + - name: Build and publish + env: + ANSIBLE_AUTOMATION_HUB_API_KEY: ${{ secrets.ANSIBLE_AUTOMATION_HUB_API_KEY }} + run: | + ansible-galaxy collection build . + ansible-galaxy collection publish *.tar.gz --api-key=$ANSIBLE_AUTOMATION_HUB_API_KEY -s=https://cloud.redhat.com/api/automation-hub/ diff --git a/.github/workflows/gcloud.yml b/.github/workflows/gcloud.yml index f4fc7d30..c9b449ca 100644 --- a/.github/workflows/gcloud.yml +++ b/.github/workflows/gcloud.yml @@ -27,12 +27,12 @@ jobs: - gcloud steps: - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: path: ansible_collections/google/cloud - name: Set up Python 3.9 - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: 3.9 diff --git a/.github/workflows/gcsfuse.yml b/.github/workflows/gcsfuse.yml index 01099255..42376995 100644 --- a/.github/workflows/gcsfuse.yml +++ b/.github/workflows/gcsfuse.yml @@ -22,12 +22,12 @@ jobs: - gcsfuse steps: - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: path: ansible_collections/google/cloud - name: Set up Python 3.9 - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: 3.9 diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index 42d663f3..dd460e68 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -8,18 +8,18 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: 3.x - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install ansible - - name: Build and publish - env: - ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} - run: | - ansible-galaxy collection build . - ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install ansible + - name: Build and publish + env: + ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} + run: | + ansible-galaxy collection build . + ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY