Skip to content

fix: Fix branch for demo action #2

fix: Fix branch for demo action

fix: Fix branch for demo action #2

Workflow file for this run

name: Delete PR folder in gh-pages
on:
pull_request:
types: [closed]
permissions:
contents: write
pull-requests: write
statuses: write
checks: write
pages: write
jobs:
clean:
runs-on: ubuntu-latest
steps:
- name: Checkout demo branch
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
path: demo
ref: gh-pages
- name: Delete PR folder
run: |
rm -rf ./demo/${{ github.event.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit demo for gh-pages
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 #v1.4
with:
directory: "./demo"
github_token: ${{ secrets.GITHUB_TOKEN }}
message: "doc: cleanup demo"
branch: gh-pages