Skip to content

Commit

Permalink
Pass secret correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Sep 14, 2023
1 parent 7e31a28 commit 41f5406
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/publish-docs/action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: Publish Documentation
description: 'Publish the documentation to hex.pm and github pages.'

inputs:
github_token:
description: 'The github token to use for committing'
required: true

runs:
using: composite
steps:
- uses: launchdarkly/gh-actions/actions/publish-pages@rlamb/change-default-docs-out
name: 'Publish to Github pages'
with:
docs_path: doc
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ inputs.github_token }}
- run: rebar3 hex docs
shell: bash
2 changes: 2 additions & 0 deletions .github/workflows/manual-publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ jobs:
- id: publish
name: Publish Documentation
uses: ./.github/actions/publish-docs
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 41f5406

Please sign in to comment.