From 360049056b3e9267a015095d51ea488f061a56c3 Mon Sep 17 00:00:00 2001 From: karimjindani Date: Fri, 25 Aug 2023 09:03:43 +0500 Subject: [PATCH] Testing Changes Push 6 --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: