Skip to content

Merge pull request #13 from adfinis/fix/ci_galaxy_version #18

Merge pull request #13 from adfinis/fix/ci_galaxy_version

Merge pull request #13 from adfinis/fix/ci_galaxy_version #18

Workflow file for this run

---
name: Build and deploy Collection on Ansible Galaxy
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Upload collection to Ansible Galaxy
uses: ansible/[email protected]
with:
api_key: ${{ secrets.GALAXY_API_KEY }}
galaxy_version: ${{ GITHUB_REF#refs/tags/v }}

Check failure on line 24 in .github/workflows/collection.yml

View workflow run for this annotation

GitHub Actions / Build and deploy Collection on Ansible Galaxy

Invalid workflow file

The workflow is not valid. .github/workflows/collection.yml (Line: 24, Col: 27): Unexpected symbol: 'GITHUB_REF#refs/tags/v'. Located at position 1 within expression: GITHUB_REF#refs/tags/v