diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 764fc4f91..96e6dcbe0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,6 +5,7 @@ on: jobs: test: + if: "endsWith(github.base_ref, 'main')" runs-on: "ubuntu-20.04" steps: - uses: "actions/checkout@v4" @@ -22,5 +23,12 @@ jobs: - name: "Install Test Dependencies" run: | pip install -r doc_requirements.txt - - name: Build docs - run: make docs + - name: "Build docs" + run: | + make docs + no-test: + if: "!endsWith(github.base_ref, 'main')" + runs-on: "ubuntu-20.04" + steps: + - run: | + echo "Skip docs testing on non-main branches." diff --git a/.github/workflows/kanban.yml b/.github/workflows/kanban.yml deleted file mode 100644 index 1d125e4d8..000000000 --- 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.2.1 - 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.2.1 - 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@v4 - - name: Get Linked Issues Action - uses: kin/gh-action-get-linked-issues@v2.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.2.1 - 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.2.1 - 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/cookiecutter/docs/{{ cookiecutter.__project_slug }}/.github/workflows/docs.yml b/cookiecutter/docs/{{ cookiecutter.__project_name }}/.github/workflows/docs.yml similarity index 69% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/.github/workflows/docs.yml rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/.github/workflows/docs.yml index 764fc4f91..96e6dcbe0 100644 --- a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/.github/workflows/docs.yml +++ b/cookiecutter/docs/{{ cookiecutter.__project_name }}/.github/workflows/docs.yml @@ -5,6 +5,7 @@ on: jobs: test: + if: "endsWith(github.base_ref, 'main')" runs-on: "ubuntu-20.04" steps: - uses: "actions/checkout@v4" @@ -22,5 +23,12 @@ jobs: - name: "Install Test Dependencies" run: | pip install -r doc_requirements.txt - - name: Build docs - run: make docs + - name: "Build docs" + run: | + make docs + no-test: + if: "!endsWith(github.base_ref, 'main')" + runs-on: "ubuntu-20.04" + steps: + - run: | + echo "Skip docs testing on non-main branches." diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/doc_requirements.txt b/cookiecutter/docs/{{ cookiecutter.__project_name }}/doc_requirements.txt similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/doc_requirements.txt rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/doc_requirements.txt diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/docs/en/index.html b/cookiecutter/docs/{{ cookiecutter.__project_name }}/docs/en/index.html similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/docs/en/index.html rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/docs/en/index.html diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/guides/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/guides/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/guides/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/guides/.gitkeep diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/learn/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/learn/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/learn/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/learn/.gitkeep diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/reference/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/reference/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/reference/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/reference/.gitkeep diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/tutorials/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/tutorials/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/tutorials/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/tutorials/.gitkeep diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/dev/guides/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/dev/guides/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/dev/guides/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/dev/guides/.gitkeep diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/dev/learn/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/dev/learn/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/dev/learn/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/dev/learn/.gitkeep diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/dev/reference/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/dev/reference/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/dev/reference/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/dev/reference/.gitkeep diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/dev/tutorials/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/dev/tutorials/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/dev/tutorials/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/dev/tutorials/.gitkeep diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/user/guides/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/user/guides/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/user/guides/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/user/guides/.gitkeep diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/user/learn/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/user/learn/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/user/learn/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/user/learn/.gitkeep diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/user/reference/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/user/reference/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/user/reference/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/user/reference/.gitkeep diff --git a/cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/user/tutorials/.gitkeep b/cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/user/tutorials/.gitkeep similarity index 100% rename from cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/user/tutorials/.gitkeep rename to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/user/tutorials/.gitkeep