Skip to content

Commit

Permalink
CI: Fix Docs Deploy (#11357)
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey authored Apr 20, 2024
1 parent b8895ae commit 6c2196f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docs_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:

workflow_dispatch:

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -59,7 +62,6 @@ jobs:
env:
GIT_USER: ${{ secrets.PX4BUILDBOT_USER }}
GIT_PASS: ${{ secrets.PX4BUILDBOT_PASS }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
git clone https://${{ secrets.PX4BUILDBOT_USER }}:${{ secrets.PX4BUILDBOT_ACCESSTOKEN }}@github.com/mavlink/docs.qgroundcontrol.com.git
rm -rf docs.qgroundcontrol.com/${{ env.BRANCH_NAME }}
Expand Down

0 comments on commit 6c2196f

Please sign in to comment.