From ececcf02f35fcbe5f06a7f0786e3f1b9761c9cef Mon Sep 17 00:00:00 2001 From: Pierre Besson <513471+PierreBesson@users.noreply.github.com> Date: Thu, 18 Jul 2024 14:48:48 +0200 Subject: [PATCH] Rename ansible-galaxy to ansible-polkadot (#73) * rename repo ansible-galaxy to ansible-polkadot * release version 1.10 * update actions/github-script to v7 * fix check version script * use third party semver compare action --- .github/workflows/branch-main.yml | 2 +- .github/workflows/reusable-check-version.yml | 10 +++++----- README.md | 12 ++++++------ galaxy.yml | 8 ++++---- roles/node_backup/molecule/default/README.md | 2 +- roles/node_backup/molecule/default/collections.yml | 2 +- .../molecule/default/collections.yml | 2 +- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/branch-main.yml b/.github/workflows/branch-main.yml index 5709e41..246e7cc 100644 --- a/.github/workflows/branch-main.yml +++ b/.github/workflows/branch-main.yml @@ -38,7 +38,7 @@ jobs: run: | echo "Tag version: ${CURRENT_GALAXY_VERSION}" - name: Create Tag - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | const {CURRENT_GALAXY_VERSION} = process.env diff --git a/.github/workflows/reusable-check-version.yml b/.github/workflows/reusable-check-version.yml index 35d3209..d196d60 100644 --- a/.github/workflows/reusable-check-version.yml +++ b/.github/workflows/reusable-check-version.yml @@ -45,13 +45,13 @@ jobs: echo "MAIN_GALAXY_VERSION=${MAIN_GALAXY_VERSION}" >> "${GITHUB_ENV}" - name: Validate the current version if: ${{ ! env.CURRENT_GALAXY_VERSION }} - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | core.setFailed('Your Galaxy version is absent or empty!') - name: Compare versions - if: ${{ inputs.compare-versions && env.MAIN_GALAXY_VERSION >= env.CURRENT_GALAXY_VERSION }} - uses: actions/github-script@v6 + uses: jackbilestech/semver-compare@1.0.4 with: - script: | - core.setFailed('Your Galaxy version is lower than the version in the main branch or equal. Please bump your version!') + base: ${{env.MAIN_GALAXY_VERSION}} + head: ${{env.CURRENT_GALAXY_VERSION}} + operator: '>=' diff --git a/README.md b/README.md index 278ecf4..a81e883 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -# Ansible Collection - paritytech.chain +# Ansible Polkadot Collection - paritytech.chain ## Install Ansible collections Create `requirements.yml` file in your playbook repository (or add to the existing file): ```yaml collections: - - name: https://github.com/paritytech/ansible-galaxy.git + - name: https://github.com/paritytech/ansible-polkadot.git type: git - version: 1.8.0 + version: 1.10.0 ``` or @@ -15,19 +15,19 @@ or ```yaml collections: - name: paritytech.chain - version: 1.8.0 + version: 1.10.0 ``` If you want to install collections in the project space, you have to run: ```commandline mkdir collections -ansible-galaxy collection install -f -r requirements.yml -p ./collections +ansible-polkadot collection install -f -r requirements.yml -p ./collections ``` If you want to install collections in the global space (`~/.ansible/collections`), you have to run: ```commandline -ansible-galaxy collection install -f -r requirements.yml +ansible-polkadot collection install -f -r requirements.yml ``` ## Roles diff --git a/galaxy.yml b/galaxy.yml index 6a0e9b1..81e1d6c 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -8,7 +8,7 @@ namespace: paritytech name: chain # The version of the collection. Must be compatible with semantic versioning -version: 1.9.1 +version: 1.10.0 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md @@ -42,16 +42,16 @@ tags: [] dependencies: {} # The URL of the originating SCM repository -repository: https://github.com/paritytech/ansible-galaxy.git +repository: https://github.com/paritytech/ansible-polkadot.git # The URL to any online docs -documentation: https://github.com/paritytech/ansible-galaxy +documentation: https://github.com/paritytech/ansible-polkadot # The URL to the homepage of the collection/project homepage: https://parity.io # The URL to the collection issue tracker -issues: https://github.com/paritytech/ansible-galaxy/issues +issues: https://github.com/paritytech/ansible-polkadot/issues # A list of file glob-like patterns used to filter any files or directories that should not be included in the build # artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This diff --git a/roles/node_backup/molecule/default/README.md b/roles/node_backup/molecule/default/README.md index 8321361..7ad07d7 100644 --- a/roles/node_backup/molecule/default/README.md +++ b/roles/node_backup/molecule/default/README.md @@ -3,7 +3,7 @@ Molecula should install collection automatically, If id did not happened run: ```commandline mkdir molecule/default/collections -ansible-galaxy collection install -f -r molecule/default/collections.yml -p ./molecule/default/collections +ansible-polkadot collection install -f -r molecule/default/collections.yml -p ./molecule/default/collections ``` ### Molecule diff --git a/roles/node_backup/molecule/default/collections.yml b/roles/node_backup/molecule/default/collections.yml index 00da5fa..9cafe90 100644 --- a/roles/node_backup/molecule/default/collections.yml +++ b/roles/node_backup/molecule/default/collections.yml @@ -1,5 +1,5 @@ --- collections: - - name: https://github.com/paritytech/ansible-galaxy.git + - name: https://github.com/paritytech/ansible-polkadot.git type: git version: main diff --git a/roles/ws_health_exporter/molecule/default/collections.yml b/roles/ws_health_exporter/molecule/default/collections.yml index 7a0c167..dc250af 100644 --- a/roles/ws_health_exporter/molecule/default/collections.yml +++ b/roles/ws_health_exporter/molecule/default/collections.yml @@ -1,4 +1,4 @@ collections: - - name: https://github.com/paritytech/ansible-galaxy.git + - name: https://github.com/paritytech/ansible-polkadot.git type: git version: main