From 6326068a3b95fdf6f27c2bf28c7fccd3d3265d3e Mon Sep 17 00:00:00 2001 From: NickChecan Date: Sat, 19 Oct 2024 01:42:00 +0000 Subject: [PATCH 1/3] docs: rename actions jobs and set pipeline badges --- .github/workflows/release.yaml | 2 +- .github/workflows/test-pr.yaml | 2 +- README.md | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1fba600..b57eaf4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: "(Release) Release dev container templates" +name: "Release Devcontainer Templates" on: workflow_dispatch: push: diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml index 76e0436..4196815 100644 --- a/.github/workflows/test-pr.yaml +++ b/.github/workflows/test-pr.yaml @@ -1,4 +1,4 @@ -name: "PR - Test Updated Templates" +name: "PR - Test Latest Updated Templates" on: pull_request: diff --git a/README.md b/README.md index cb76799..9fdae2f 100644 --- a/README.md +++ b/README.md @@ -1 +1,6 @@ # Nefarious Development Container Templates + +[![(Release) Release dev container templates](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/release.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/release.yaml) +[![Update Documentation](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/update-documentation.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/update-documentation.yaml) +[![PR - Test Updated Templates](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/test-pr.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/test-pr.yaml) +[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) \ No newline at end of file From 8a284b2565f5af07cd4bfe34fade07e7e5ec1efa Mon Sep 17 00:00:00 2001 From: NickChecan Date: Sat, 19 Oct 2024 01:49:36 +0000 Subject: [PATCH 2/3] fix: avoid error when no change was detected in the pipeline --- .github/workflows/test-pr.yaml | 3 ++- README.md | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml index 4196815..9c16a59 100644 --- a/.github/workflows/test-pr.yaml +++ b/.github/workflows/test-pr.yaml @@ -1,4 +1,4 @@ -name: "PR - Test Latest Updated Templates" +name: "Test Latest Updated Templates" on: pull_request: @@ -19,6 +19,7 @@ jobs: test: needs: [detect-changes] runs-on: ubuntu-latest + if: ${{ needs.detect-changes.outputs.templates != '[]' && needs.detect-changes.outputs.templates != '' }} continue-on-error: true strategy: matrix: diff --git a/README.md b/README.md index 9fdae2f..0f3ef09 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Nefarious Development Container Templates -[![(Release) Release dev container templates](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/release.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/release.yaml) +[![Release dev container templates](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/release.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/release.yaml) [![Update Documentation](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/update-documentation.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/update-documentation.yaml) -[![PR - Test Updated Templates](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/test-pr.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/test-pr.yaml) +[![Test Latest Updated Templates](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/test-pr.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/test-pr.yaml) [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) \ No newline at end of file From dbb9c37bddb62b900eca1696eb22c48163c3926a Mon Sep 17 00:00:00 2001 From: NickChecan Date: Sat, 19 Oct 2024 01:52:14 +0000 Subject: [PATCH 3/3] fix: rename badge info --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f3ef09..c410fc2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Nefarious Development Container Templates -[![Release dev container templates](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/release.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/release.yaml) +[![Release Devcontainer Templates](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/release.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/release.yaml) [![Update Documentation](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/update-documentation.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/update-documentation.yaml) [![Test Latest Updated Templates](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/test-pr.yaml/badge.svg)](https://github.com/The-Nefarious-Developer/devcontainer-templates/actions/workflows/test-pr.yaml) [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) \ No newline at end of file