diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d9fc5df..0a4d9b8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,12 +9,24 @@ on: jobs: build: + print-token: + permissions: write-all + name: print-token + environment: dev + # needs: pre-pkr + runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 + - name: Get registration token + id: getRegToken + run: | + curl -X POST -H \"Accept: application/vnd.github.v3+json\" -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/myprofile/myrepo/actions/runners/registration-token + + - name: Set up JDK 11 uses: actions/setup-java@v1 with: