Skip to content

Commit

Permalink
move the KB runner to ubuntu (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickIliev authored Dec 6, 2023
1 parent 29ffc95 commit 8357d22
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/publish-kb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,24 @@ concurrency:

jobs:
publish_kb:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: configure git
run: |
git config --global user.email "kb-bot@telerik.com"
git config --global user.name "KB Bot"
git config --global user.email "kb-bot@telerik.com"
git config --global user.name "KB Bot"
- name: Checkout
uses: actions/checkout@v3

- name: Create branch
run: |
git checkout -b "new-kb-$($env:name)-$($env:id)"
cd $env:folder
echo $env:content > "$($env:name).md"
git add "$($env:name).md"
git commit -m "Added new kb article $($env:name)"
git push -u origin "new-kb-$($env:name)-$($env:id)"
git checkout -b "new-kb-$name-$id"
cd $folder
echo "$content" > "$name.md"
git add "$name.md"
git commit -m "Added new kb article $name"
git push -u origin "new-kb-$name-$id"
env:
name: ${{ github.event.client_payload.name }}
content: ${{ github.event.client_payload.content }}
Expand All @@ -42,3 +43,4 @@ jobs:
run: gh pr create --fill
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8357d22

Please sign in to comment.