From aba1e67cb7008e742df4ffb48b5de0b3c05d1ea4 Mon Sep 17 00:00:00 2001 From: Gerrod Ubben Date: Tue, 15 Oct 2024 15:03:14 -0400 Subject: [PATCH 1/2] Update actions to latest version and set CI python to 3.11 [noissue] --- .github/actions/build_image/action.yml | 6 +- .github/workflows/ci.yml | 4 +- .github/workflows/docs.yml | 17 ----- .github/workflows/kanban.yml | 97 -------------------------- .github/workflows/release.yml | 10 +-- 5 files changed, 13 insertions(+), 121 deletions(-) delete mode 100644 .github/workflows/docs.yml delete mode 100644 .github/workflows/kanban.yml diff --git a/.github/actions/build_image/action.yml b/.github/actions/build_image/action.yml index efb3d4c5..86b577ee 100644 --- a/.github/actions/build_image/action.yml +++ b/.github/actions/build_image/action.yml @@ -44,10 +44,12 @@ runs: shell: bash - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 + with: + python-version: 3.11 - name: Restore podman images from cache - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 with: key: base-images=${{ inputs.image_cache_key }} path: base-images.tar diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc4ccc01..c9de4e2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,9 @@ jobs: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 + with: + python-version: 3.11 - name: Check commit message env: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 4221daf8..00000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Nightly Docs - -on: - schedule: - - cron: '15 3 * * *' - workflow_dispatch: - -jobs: - publish-docs: - name: Publish docs - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Run publish docs script - env: - PULP_DOCS_KEY: ${{ secrets.PULP_DOCS_KEY }} - run: .ci/scripts/publish_docs.sh ${GITHUB_REF##*/} diff --git a/.github/workflows/kanban.yml b/.github/workflows/kanban.yml deleted file mode 100644 index a884dbfc..00000000 --- a/.github/workflows/kanban.yml +++ /dev/null @@ -1,97 +0,0 @@ -# Manage issues in a project board using https://github.com/leonsteinhaeuser/project-beta-automations - ---- -name: Kanban -on: - pull_request_target: - issues: - types: - - labeled - - reopened - - assigned - - closed - -env: - free_to_take: Free to take - in_progress: In Progress - needs_review: Needs review - done: Done - -jobs: - # only prio-list labeled items should be added to the board - add-to-project-board: - if: github.event_name == 'issues' && contains(github.event.issue.labels.*.name, 'prio-list') && contains(fromJson('["labeled", "reopened"]'), github.event.action) - runs-on: ubuntu-latest - steps: - - name: Add issue to Free-to-take list - uses: leonsteinhaeuser/project-beta-automations@v2.0.0 - with: - gh_token: ${{ secrets.RELEASE_TOKEN }} - organization: pulp - project_id: 8 - resource_node_id: ${{ github.event.issue.node_id }} - operation_mode: status - status_value: ${{ env.free_to_take }} # Target status - - move-to-inprogress: - if: github.event_name == 'issues' && github.event.action == 'assigned' - runs-on: ubuntu-latest - steps: - - name: Move an issue to the In Progress column - uses: leonsteinhaeuser/project-beta-automations@v2.0.0 - with: - gh_token: ${{ secrets.RELEASE_TOKEN }} - organization: pulp - project_id: 8 - resource_node_id: ${{ github.event.issue.node_id }} - operation_mode: status - status_value: ${{ env.in_progress }} # Target status - - find-linked-issues: - if: github.event_name == 'pull_request_target' - runs-on: ubuntu-latest - name: Find issues linked to a PR - outputs: - linked-issues: ${{ steps.linked-issues.outputs.issues }} - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Get Linked Issues Action - uses: kin/gh-action-get-linked-issues@v1.0 - id: linked-issues - with: - access-token: ${{ secrets.RELEASE_TOKEN }} - - move-to-needs-review: - if: github.event_name == 'pull_request_target' && contains(fromJson(needs.find-linked-issues.outputs.linked-issues).*.issue.state, 'open') - runs-on: ubuntu-latest - name: Move linked issues to Needs Review - needs: find-linked-issues - strategy: - max-parallel: 3 - matrix: - issues: ${{ fromJSON(needs.find-linked-issues.outputs.linked-issues) }} - steps: - - name: Move to Needs Review - uses: leonsteinhaeuser/project-beta-automations@v2.0.0 - with: - gh_token: ${{ secrets.RELEASE_TOKEN }} - organization: pulp - project_id: 8 - resource_node_id: ${{ matrix.issues.issue.node_id }} - operation_mode: status - status_value: ${{ env.needs_review }} # Target status - - move-to-done: - if: github.event_name == 'issues' && github.event.action == 'closed' - runs-on: ubuntu-latest - steps: - - name: Move an issue to the Done column - uses: leonsteinhaeuser/project-beta-automations@v2.0.0 - with: - gh_token: ${{ secrets.RELEASE_TOKEN }} - organization: pulp - project_id: 8 - resource_node_id: ${{ github.event.issue.node_id }} - operation_mode: status - status_value: ${{ env.done }} # Target status diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e6f715e..01a9a4c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,8 +11,6 @@ on: required: false default: '3.9' type: string - schedule: - - cron: '0 1 * * *' push: branches: - latest @@ -33,7 +31,9 @@ jobs: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 + with: + python-version: 3.11 - name: Update to the latest pip run: python -m pip install --upgrade pip @@ -69,7 +69,9 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 + with: + python-version: 3.11 - name: Install python deps run: | From 0bcfa98864b0f51dc7a91a8e5fe8f1e14a14abb4 Mon Sep 17 00:00:00 2001 From: Gerrod Ubben Date: Wed, 16 Oct 2024 15:45:39 -0400 Subject: [PATCH 2/2] Remove galaxy matrix scenarios [noissue] --- .github/workflows/ci.yml | 2 -- .github/workflows/release.yml | 5 ----- 2 files changed, 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9de4e2c..05778d57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,8 +87,6 @@ jobs: image_name: - pulp-minimal - pulp - - galaxy-minimal - - galaxy steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01a9a4c5..94dc5e93 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,9 +11,6 @@ on: required: false default: '3.9' type: string - push: - branches: - - latest concurrency: group: ${{ github.ref_name }}-${{ github.workflow }} @@ -161,8 +158,6 @@ jobs: image_name: - pulp-minimal - pulp - - galaxy-minimal - - galaxy steps: - uses: actions/checkout@v4