Skip to content

Commit

Permalink
gha: run the action with and without version
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeken committed May 3, 2023
1 parent 07bb0b1 commit c98419b
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
- v0

jobs:
test_action:
name: Run
test_action_with_version:
name: Run the action with the version
runs-on: ubuntu-latest

steps:
Expand All @@ -26,3 +26,20 @@ jobs:
- name: Test Github API call
run: |
curl --fail -H 'Authorization: token ${{ steps.go-github-apps.outputs.app_github_token }}' https://api.github.com/
test_action_with_default:
name: Run the action with the default version
runs-on: ubuntu-latest

steps:
- name: Get GITHUB_TOKEN for Github Apps
uses: nabeken/go-github-apps@v0
id: go-github-apps
with:
installation_id: ${{ secrets.installation_id }}
app_id: ${{ secrets.app_id }}
private_key: ${{ secrets.private_key }}

- name: Test Github API call
run: |
curl --fail -H 'Authorization: token ${{ steps.go-github-apps.outputs.app_github_token }}' https://api.github.com/

0 comments on commit c98419b

Please sign in to comment.