Commit 84543312 authored by David Hoeller's avatar David Hoeller

Adds secrets in doc building action (#122)

# Description

Adds secrets in doc building pipeline

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
parent f526a3ea
...@@ -3,10 +3,24 @@ name: Build & deploy docs ...@@ -3,10 +3,24 @@ name: Build & deploy docs
on: [push] on: [push]
jobs: jobs:
check-secrets:
name: Check secrets
runs-on: ubuntu-latest
outputs:
trigger-build: ${{ steps.trigger-build.outputs.defined }}
steps:
- id: trigger-build
env:
REPO_NAME: ${{ secrets.REPO_NAME }}
BRANCH_REF: ${{ secrets.BRANCH_REF }}
if: "${{ github.repository == env.REPO_NAME && github.ref == env.BRANCH_REF }}"
run: echo "defined=true" >> "$GITHUB_OUTPUT"
build-docs: build-docs:
name: Build and deploy documentation name: Build and deploy documentation
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'isaac-sim/IsaacLab' && github.ref == 'refs/heads/main' needs: [check-secrets]
if: needs.check-secrets.outputs.trigger-build == 'true'
steps: steps:
- name: Checkout code - name: Checkout code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment