Skip to content

Commit

Permalink
Create create-app-token.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
pkbhaga03 authored Jan 10, 2024
1 parent bf96fd1 commit e0e6e1e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/create-app-token.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: create-app-token
on: [workflow_dispatch]

jobs:
hello-world:
runs-on: Ubuntu22.04
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
owner: actions-int
env:
GITHUB_API_URL: "https://${{ secrets.SERVER_URL }}/api/v3/"
- name: print token
run: echo ${{ steps.app-token.outputs.token }}
- name: Checkout private repository
uses: actions/checkout@v4
with:
repository: actions-int/composite-workflows
ref: main
token: ${{ steps.app-token.outputs.token }}
path: composite-workflows

0 comments on commit e0e6e1e

Please sign in to comment.