Skip to content

[node] Fix name (#85) #58

[node] Fix name (#85)

[node] Fix name (#85) #58

Workflow file for this run

name: main branch
on:
push:
branches:
- main
jobs:
run-molecule-tests:
strategy:
fail-fast: false
matrix:
role-names: [node, ws_health_exporter, nginx, node_backup ]
molecule-drivers: [docker]
# We test the latest version and minimum supported version
ansible-versions: [8.0.0, 9.0.1]
uses: ./.github/workflows/reusable-molecule.yml
with:
role-name: ${{ matrix.role-names }}
molecule-driver: ${{ matrix.molecule-drivers }}
ansible-version: ${{ matrix.ansible-versions }}
check-version:
uses: ./.github/workflows/reusable-check-version.yml
with:
compare-versions: false
deploy-galaxy:
needs: [run-molecule-tests, check-version]
uses: ./.github/workflows/reusable-galaxy-deploy.yml
secrets:
api-token: ${{ secrets.GALAXY_API_KEY }}
create-git-tag:
runs-on: ubuntu-22.04
needs: [deploy-galaxy, check-version]
env:
CURRENT_GALAXY_VERSION: ${{ needs.check-version.outputs.current-galaxy-version }}
steps:
- name: Print tag version
run: |
echo "Tag version: ${CURRENT_GALAXY_VERSION}"
- name: Create Tag
uses: actions/github-script@v7
with:
script: |
const {CURRENT_GALAXY_VERSION} = process.env
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `refs/tags/${CURRENT_GALAXY_VERSION}`,
sha: context.sha
})