From 21f0adcdc036c16c34ec2038a47d6790c06b9f9c Mon Sep 17 00:00:00 2001 From: Damith Dilhan <55306956+DamithDilhan@users.noreply.github.com> Date: Sun, 19 Jun 2022 16:39:43 +0530 Subject: [PATCH 1/5] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 063cc00..c0af5d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -68,7 +68,7 @@ jobs: with: status: ${{ steps.test_code.conclusion }} name: "CI /testing" - url: "this is url" + url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' description: "test code" From 4850769bcb3f3686c88965b75596edfcc50b4d1c Mon Sep 17 00:00:00 2001 From: Damith Dilhan <55306956+DamithDilhan@users.noreply.github.com> Date: Sun, 19 Jun 2022 16:54:23 +0530 Subject: [PATCH 2/5] Update main.yml --- .github/workflows/main.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c0af5d0..bd126b1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,8 @@ jobs: linting: # The type of runner that the job will run on runs-on: ubuntu-latest + permissions: + statuses: write # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -31,15 +33,16 @@ jobs: - name: Code liniting id: lint_code run: npm run lint - - name: Create status + - name: Write status if: always() - uses: hkusu/status-create-action@v1.0.0 + uses: ouzi-dev/commit-status-updater@v1.1.0 with: - sha: ${{ github.sha }} - state: ${{ steps.lint_code.conclusion }} - context: "${{ github.workflow }}/lint" + status: ${{ steps.lint_code.conclusion }} + name: "${{ github.workflow }}/lint" + url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' description: "Lint code" - github-token: ${{secrets.GITHUB_TOKEN}} + token: ${{secrets.GITHUB_TOKEN}} + ignoreForks: false @@ -67,9 +70,11 @@ jobs: uses: ouzi-dev/commit-status-updater@v1.1.0 with: status: ${{ steps.test_code.conclusion }} - name: "CI /testing" + name: "${{ github.workflow }}/test" url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' - description: "test code" + description: "Test code" + token: ${{secrets.GITHUB_TOKEN}} + ignoreForks: false From fc373e87edb1e9db0969c2dddb26533eb9da948a Mon Sep 17 00:00:00 2001 From: Damith Dilhan <55306956+DamithDilhan@users.noreply.github.com> Date: Sun, 19 Jun 2022 17:01:49 +0530 Subject: [PATCH 3/5] Update dependency-review.yml --- .github/workflows/dependency-review.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 8966511..40317b0 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -13,8 +13,21 @@ permissions: jobs: dependency-review: runs-on: ubuntu-latest + permissions: + statuses: write steps: - name: 'Checkout Repository' uses: actions/checkout@v3 - name: 'Dependency Review' + id: dependency_review uses: actions/dependency-review-action@v1 + - name: Write status + if: always() + uses: ouzi-dev/commit-status-updater@v1.1.0 + with: + status: ${{ steps.dependency-review.conclusion }} + name: "${{ github.workflow }}" + url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + description: "Dependency review on code" + token: ${{secrets.GITHUB_TOKEN}} + ignoreForks: false From 23aa95b5d8b04089809439b97db34a44b8e76a8c Mon Sep 17 00:00:00 2001 From: Damith Dilhan <55306956+DamithDilhan@users.noreply.github.com> Date: Sun, 19 Jun 2022 17:02:57 +0530 Subject: [PATCH 4/5] Update dependency-review.yml --- .github/workflows/dependency-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 40317b0..af84f28 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -25,7 +25,7 @@ jobs: if: always() uses: ouzi-dev/commit-status-updater@v1.1.0 with: - status: ${{ steps.dependency-review.conclusion }} + status: ${{ steps.dependency_review.conclusion }} name: "${{ github.workflow }}" url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' description: "Dependency review on code" From 6383ef41cd1fde3dbce598f84e0aa1d80e55f18f Mon Sep 17 00:00:00 2001 From: Damith Dilhan <55306956+DamithDilhan@users.noreply.github.com> Date: Sun, 19 Jun 2022 18:13:07 +0530 Subject: [PATCH 5/5] Create README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..30ceda6 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# sample-node-project +Sample node project for test github actions...