From 71e892962f57224273eb7d3b575a00db1b027c34 Mon Sep 17 00:00:00 2001 From: DevMirza <53424436+Zaid-maker@users.noreply.github.com> Date: Thu, 6 Jul 2023 23:44:53 +0500 Subject: [PATCH] Update readme.yml --- .github/workflows/readme.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index b279dca..3ef6717 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -1,21 +1,26 @@ name: Readme CI + on: push: branches: [main] repository_dispatch: types: [readme] workflow_dispatch: + jobs: - release: - name: Update README - runs-on: ubuntu-18.04 + summarize: + name: Update README.md and api.json + runs-on: ubuntu-latest + # Don't run this workflow when [skip ci] is passed if: "!contains(github.event.head_commit.message, '[skip ci]')" steps: - name: Checkout - uses: actions/checkout@v2 - - name: Update notes summary + uses: actions/checkout@v3 + with: + # Fetch full history to figure out created date + fetch-depth: 0 + - name: Update note summary uses: AnandChowdhary/notes-summary@HEAD with: - token: "${{ secrets.GH_PAT }}" - commitMessage: ":pencil: Update RFCs summary [skip ci]" - dirName: "rfcs" + token: ${{ secrets.GITHUB_TOKEN || github.token }} + directory: "rfcs"