Skip to content

Commit

Permalink
allow to run after every workflow push and add test
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanyqi committed Oct 10, 2023
1 parent 476b24e commit 19efe71
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/reference-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,30 @@ on:
branches-ignore:
- main
paths:
- '.github/workflows/**'
- 'reference/**'
pull_request:
paths:
- '.github/workflows/**'
- 'reference/**'

jobs:
# ////////////////////////////////////////////////////////////////////////
# Pull Request
# ////////////////////////////////////////////////////////////////////////

# Testing
test:
runs-on: ubuntu-latest
steps:
- name: Check out repo 📚
uses: actions/checkout@v3

- name: Run `versions` command
uses: readmeio/rdme@v8
with:
rdme: versions:create --help

# Create a new ReadMe Version
rdme-version:
runs-on: ubuntu-latest
Expand All @@ -24,16 +41,18 @@ jobs:
- name: Run `versions` command
uses: readmeio/rdme@v8
with:
rdme: versions:create ${{ github.event.number }} --fork=v3.26 --main=false --beta=false --deprecated=false --hidden=false
rdme: versions:create ${{ github.event.pull_request.number }} --fork=v3.26 --main=false --beta=false --deprecated=false --hidden=false

# Push branch content onto that ReadMe Version
rdme-docs:
runs-on: ubuntu-latest
needs:
- rdme-version
steps:
- name: Check out repo 📚
uses: actions/checkout@v3

- name: Run `docs` command 🚀
uses: readmeio/rdme@v8
with:
rdme: docs ./reference --key=${{ secrets.README_API_KEY }} --version=${{ github.event.number }}
rdme: docs ./reference --key=${{ secrets.README_API_KEY }} --version=${{ github.event.pull_request.number }}

0 comments on commit 19efe71

Please sign in to comment.