From e8861a653457e2b3a847adfe410ffb6c29ae4301 Mon Sep 17 00:00:00 2001 From: Mohammad Ismail <96207520+mouismail@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:46:02 +0100 Subject: [PATCH 1/5] Update README.md --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index f7ec8d14..f5b5930d 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,32 @@ jobs: ```yaml on: [push] + +jobs: + create_issue: + runs-on: self-hosted + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Create GitHub App Token + id: create_token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.GHES_APP_ID }} + private-key: ${{ secrets.GHES_APP_PRIVATE_KEY }} + owner: ${{ secrets.GHES_INSTALLATION_ORG }} + github-api-url: ${{ secrets.GHES_GITHUB_API_URL }} + + - name: Create issue + uses: octokit/request-action@v2.x + with: + route: POST /repos/${{ github.repository }}/issues + title: "New issue from workflow" + body: "This is a new issue created from a GitHub Action workflow." + env: + GITHUB_TOKEN: ${{ steps.create_token.outputs.token }} ``` ## Inputs From 3aa834291115b53389c9fe9f25a3c273d20f8e6a Mon Sep 17 00:00:00 2001 From: Mohammad Ismail <96207520+mouismail@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:22:22 +0100 Subject: [PATCH 2/5] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f5b5930d..6ef20ef1 100644 --- a/README.md +++ b/README.md @@ -192,10 +192,10 @@ jobs: id: create_token uses: actions/create-github-app-token@v1 with: - app-id: ${{ secrets.GHES_APP_ID }} + app-id: ${{ vars.GHES_APP_ID }} private-key: ${{ secrets.GHES_APP_PRIVATE_KEY }} - owner: ${{ secrets.GHES_INSTALLATION_ORG }} - github-api-url: ${{ secrets.GHES_GITHUB_API_URL }} + owner: ${{ vars.GHES_INSTALLATION_ORG }} + github-api-url: ${{ vars.GHES_GITHUB_API_URL }} - name: Create issue uses: octokit/request-action@v2.x From e393e337596f8bb60b09af38a35446d0bdca7993 Mon Sep 17 00:00:00 2001 From: Mohammad Ismail <96207520+mouismail@users.noreply.github.com> Date: Tue, 20 Feb 2024 11:47:03 +0100 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ef20ef1..351dcd12 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ jobs: app-id: ${{ vars.GHES_APP_ID }} private-key: ${{ secrets.GHES_APP_PRIVATE_KEY }} owner: ${{ vars.GHES_INSTALLATION_ORG }} - github-api-url: ${{ vars.GHES_GITHUB_API_URL }} + github-api-url: ${{ vars.GITHUB_API_URL }} - name: Create issue uses: octokit/request-action@v2.x From 9692e640f48a6b994df7cb3808556a23ba9c4745 Mon Sep 17 00:00:00 2001 From: Mohammad Ismail <96207520+mouismail@users.noreply.github.com> Date: Wed, 21 Feb 2024 02:21:44 +0100 Subject: [PATCH 4/5] Update README.md Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 351dcd12..f4a790c5 100644 --- a/README.md +++ b/README.md @@ -185,9 +185,6 @@ jobs: runs-on: self-hosted steps: - - name: Check out code - uses: actions/checkout@v2 - - name: Create GitHub App Token id: create_token uses: actions/create-github-app-token@v1 From c00af6e201eb24dfa03b4bc7009733f357168d77 Mon Sep 17 00:00:00 2001 From: Mohammad Ismail <96207520+mouismail@users.noreply.github.com> Date: Wed, 21 Feb 2024 02:21:48 +0100 Subject: [PATCH 5/5] Update README.md Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f4a790c5..3d43472a 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ jobs: runs-on: self-hosted steps: - - name: Create GitHub App Token + - name: Create GitHub App token id: create_token uses: actions/create-github-app-token@v1 with: