From 725b93a7eb5cdc4466f8a7ddc76c15f89f865526 Mon Sep 17 00:00:00 2001 From: Kenji Miyake Date: Sat, 11 Dec 2021 02:17:57 +0900 Subject: [PATCH] ci: fix remove-docs workflow Signed-off-by: Kenji Miyake --- .github/workflows/delete-closed-pr-docs.yaml | 16 ++++++++++++++++ .github/workflows/remove-old-pr-docs.yaml | 20 -------------------- 2 files changed, 16 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/delete-closed-pr-docs.yaml delete mode 100644 .github/workflows/remove-old-pr-docs.yaml diff --git a/.github/workflows/delete-closed-pr-docs.yaml b/.github/workflows/delete-closed-pr-docs.yaml new file mode 100644 index 0000000000000..7f94a0711f5bd --- /dev/null +++ b/.github/workflows/delete-closed-pr-docs.yaml @@ -0,0 +1,16 @@ +name: delete-closed-pr-docs + +on: + schedule: + - cron: "0 19 * * 0" # run at 4 AM JST on Sundays + workflow_dispatch: + pull_request: # tmp + +jobs: + delete-closed-pr-docs: + runs-on: ubuntu-latest + steps: + - name: Delete closed PR docs + uses: autowarefoundation/autoware-github-actions/delete-closed-pr-docs@tier4/proposal + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/remove-old-pr-docs.yaml b/.github/workflows/remove-old-pr-docs.yaml deleted file mode 100644 index 9eadcfa536a2f..0000000000000 --- a/.github/workflows/remove-old-pr-docs.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: remove-old-pr-docs - -on: - pull_request_target: - types: - - closed - -jobs: - get-docs-version-name: - uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-get-docs-version-name.yaml@6a086d5eac5effbed9876049233213f5cd358914 - - remove-old-pr-docs: - uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-remove-docs.yaml@6a086d5eac5effbed9876049233213f5cd358914 - needs: get-docs-version-name - with: - script-ref: 6a086d5eac5effbed9876049233213f5cd358914 - mkdocs-yaml: mkdocs.yaml - version-name: ${{ needs.get-docs-version-name.outputs.version-name }} - secrets: - token: ${{ secrets.GITHUB_TOKEN }}