Skip to content

Commit

Permalink
Test env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Feb 23, 2024
1 parent 7192a76 commit d28ef18
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- name: 'Check token'
run: |
curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/installation/repositories
- name: 'Show env vars'
run: |
echo "Repository: $GITHUB_REPOSITORY"
echo "Repository: $GITHUB_REF_NAME"
- name: 'Checkout sources'
uses: actions/checkout@v3
- name: 'Setup NodeJS'
Expand Down
10 changes: 6 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ runs:
using: 'docker'
image: 'Dockerfile'
inputs:
github_token:
description: 'GitHub token for GitHub API requests'
required: true
default: ${{ github.token }}
upload:
description: 'Upload report to Code Limit'
required: false
token:
description: 'GitHub token used for upload to Code Limit'
required: false

0 comments on commit d28ef18

Please sign in to comment.