Skip to content

Commit

Permalink
chore: pass checkout-token from deploy-storybook (#148)
Browse files Browse the repository at this point in the history
* chore: pass checkout-token from deploy-storybook

* chore: pass checkout-token from deploy-storybook
  • Loading branch information
dmaklygin authored Mar 31, 2023
1 parent 9f47dc7 commit 400fb0c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/twenty-pots-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'davinci-github-actions': patch
---

---
- pass checkout-token from deploy-storybook GH Action to yarn-install
1 change: 1 addition & 0 deletions deploy-storybook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ The list of arguments, that are used in GH Action:
| `jenkins-folder-name` | string | | | Jenkins folder where the deployment jobs are located |
| `generate-types-command` | string | | false | Command to generate gql types |
| `pr-number` | string | | | Event number of the original pr, in case event number or issue number is not present. . |
| `checkout-token` | string | | | Repository checkout access token `GITHUB_TOKEN`. Required for self hosted runners |

### Outputs

Expand Down
5 changes: 5 additions & 0 deletions deploy-storybook/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ inputs:
description: Event number of the original pr, in case event number or issue number is not present. .
required: false
default: false
checkout-token:
description: Repository checkout access token `GITHUB_TOKEN`. Required for self hosted runners
required: false

runs:
using: composite
Expand All @@ -63,6 +66,8 @@ runs:
- name: Install Dependencies
if: ${{ inputs.use-prebuilt-package == 'false' && inputs.use-prebuilt-image == 'false' }}
uses: toptal/davinci-github-actions/[email protected]
with:
checkout-token: ${{ inputs.checkout-token }}

- name: Generate Types
if: ${{ inputs.generate-types-command != 'false' }}
Expand Down

0 comments on commit 400fb0c

Please sign in to comment.