From 8a5a0ac9d51f72ac9e46a166670289966bbd7674 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Sun, 25 Aug 2024 15:20:48 -0500 Subject: [PATCH] feat: add workflow to update external docs (#1559) * feat: add workflow to update external docs * rename token --- .github/workflows/update-external-docs.yml | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/update-external-docs.yml diff --git a/.github/workflows/update-external-docs.yml b/.github/workflows/update-external-docs.yml new file mode 100644 index 0000000000..0540de39a9 --- /dev/null +++ b/.github/workflows/update-external-docs.yml @@ -0,0 +1,30 @@ +name: Update External Docs +on: + schedule: + - cron: '0 8 * * 1' + + +permissions: + pull-requests: write + contents: write + +jobs: + update-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run scripts + run: bash ./get-contributing.sh && bash ./get-readmes.sh + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: update external docs + title: 'Update external docs' + body: > + This auto-generated PR updates external documentation to the expressjs.com repository. + labels: doc + branch: external-docs-${{ github.sha }} + delete-branch: true + +