diff --git a/.github/workflows/check-version.yml b/.github/workflows/check-version.yml index b23ad56..f468d69 100644 --- a/.github/workflows/check-version.yml +++ b/.github/workflows/check-version.yml @@ -8,6 +8,7 @@ on: - 'sync-ssh-keys.sh' - 'users.conf' - '.github/workflows/check-version.yml' + workflow_call: jobs: check-version: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7447db3..d7a818d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: # Final status check ci-success: runs-on: ubuntu-latest - needs: [lint, test] + needs: [lint, test, version-check] if: always() steps: - name: Check all jobs status diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 434d20c..d2121af 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,6 +15,7 @@ on: - 'sync-ssh-keys.sh' - 'users.conf' - '.github/workflows/lint.yml' + workflow_call: jobs: shellcheck: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ac09d6..16e44a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,7 @@ on: - 'sync-ssh-keys.sh' - 'users.conf' - '.github/workflows/test.yml' + workflow_call: jobs: test: diff --git a/README.md b/README.md index 0d77cb5..69b136e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Test Status](https://img.shields.io/github/actions/workflow/status/locus313/ssh-key-sync/ci.yml?style=flat-square&label=tests)](https://github.com/locus313/ssh-key-sync/actions) [![License](https://img.shields.io/badge/License-MIT-blue?style=flat-square)](LICENSE) [![Shell](https://img.shields.io/badge/Shell-Bash-green?style=flat-square&logo=gnu-bash)](https://www.gnu.org/software/bash/) -[![Version](https://img.shields.io/badge/Version-0.1.3-orange?style=flat-square)](https://github.com/locus313/ssh-key-sync/releases) +[![Version](https://img.shields.io/badge/Version-0.1.4-orange?style=flat-square)](https://github.com/locus313/ssh-key-sync/releases) ⭐ If you like this project, star it on GitHub — it helps a lot! diff --git a/sync-ssh-keys.sh b/sync-ssh-keys.sh index 725af03..4ba94ac 100644 --- a/sync-ssh-keys.sh +++ b/sync-ssh-keys.sh @@ -7,7 +7,7 @@ set -euo pipefail # Repository: https://github.com/locus313/ssh-key-sync # shellcheck disable=SC2034 # planned to be used in a future release -readonly SCRIPT_VERSION="0.1.3" +readonly SCRIPT_VERSION="0.1.4" SCRIPT_NAME="$(basename "$0")" readonly SCRIPT_NAME