Skip to content

Commit f857c2a

Browse files
author
Andrew Parker
committed
connect with github token
1 parent 244920b commit f857c2a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/genparker-build-and-deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
needs: init
3131
steps:
3232
- uses: BesLogic/releaf-genparker@v0.0.3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
3335

3436
- name: publish affected
3537
run: npx nx affected --target=publish --head=${{needs.init.outputs.branch}} --base=$BEFORE_SHA --configuration=${{needs.init.outputs.environment}} --parallel=5

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: 'Monorepo setup'
22
description: 'A way to install and cache dependencies for a monorepo'
3+
inputs:
4+
github_token:
5+
description: 'The token to authenticate with'
6+
required: true
37
runs:
48
using: "composite"
59
steps:
@@ -13,7 +17,7 @@ runs:
1317
with:
1418
registry: ghcr.io
1519
username: ${{ github.actor }}
16-
password: ${{ secrets.GITHUB_TOKEN }}
20+
password: ${{ inputs.github_token }}
1721

1822
- name: Cache dependencies
1923
uses: actions/cache@v2

0 commit comments

Comments
 (0)