Skip to content

Commit

Permalink
add input for github_token secret
Browse files Browse the repository at this point in the history
  • Loading branch information
whummer committed Sep 23, 2023
1 parent c23125d commit b5fdbe2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
7 changes: 6 additions & 1 deletion finish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
types:
- completed

inputs:
github_token:
description: 'Github token used to create PR comments'
required: true

jobs:
success:
runs-on: ubuntu-latest
Expand All @@ -24,7 +29,7 @@ jobs:
- name: Update status comment
uses: actions-cool/maintain-one-comment@v3.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ inputs.github_token }}
body: |
🚀 LocalStack Stack Insights and Cloud Pod state for this CI run: https://app.localstack.cloud/ci
<!-- Sticky Pull Request Comment -->
Expand Down
28 changes: 16 additions & 12 deletions prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ name: Start CI Build

on: pull_request_target

jobs:
prepare:
runs-on: ubuntu-latest
steps:
- name: Create initial PR comment
uses: actions-cool/maintain-one-comment@v3.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
⚡️ Running CI build with LocalStack ...
<!-- Sticky Pull Request Comment -->
body-include: '<!-- Sticky Pull Request Comment -->'
inputs:
github_token:
description: 'Github token used to create PR comments'
required: true

runs:
using: composite
steps:
- name: Create initial PR comment
uses: actions-cool/maintain-one-comment@v3.1.1
with:
token: ${{ inputs.github_token }}
body: |
⚡️ Running CI build with LocalStack ...
<!-- Sticky Pull Request Comment -->
body-include: '<!-- Sticky Pull Request Comment -->'

0 comments on commit b5fdbe2

Please sign in to comment.