Skip to content

Commit

Permalink
Create copy_stoplight_docs.yml
Browse files Browse the repository at this point in the history
Automate the process of copying Markdown files from main branch to stoplight_docs branch whenever a merge occurs
  • Loading branch information
StefanoStream authored Dec 10, 2024
1 parent fde70bc commit 112d81e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/copy_stoplight_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Copy Markdown to Stoplight Branch

on:
push:
branches: [main]

jobs:
copy-markdown:
name: Deploy Stoplight documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check for Stoplight Branch
run: |
git checkout -b stoplight_docs --force
git push origin stoplight_docs --force
- name: Copy Markdown Files
run: |
cp -r ./**/*.md stoplight_docs/
- name: Commit Changes
run: |
git add .
git commit -m "Update Stoplight documentation"
git push origin stoplight_docs

0 comments on commit 112d81e

Please sign in to comment.