Skip to content

Test

Test #3

Workflow file for this run

name: Test
on:
workflow_dispatch: # Allows triggering manually
permissions: {}
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{ github.repository }}/issues \
-f title="Test" \
-f body="Ping @Infinisil-s-Test-Organization/test @infinisil"
env:
# This token has write access to only issues to create one
GH_TOKEN: ${{ steps.app-token.outputs.token }}