diff --git a/.github/workflows/dispatch_plugin_template.yaml b/.github/workflows/dispatch_plugin_template.yaml index c78fa47..3877ff3 100644 --- a/.github/workflows/dispatch_plugin_template.yaml +++ b/.github/workflows/dispatch_plugin_template.yaml @@ -42,11 +42,15 @@ jobs: - name: install spaceone package run: | pip install --upgrade spaceone-core - pip install --upgrade --pre spaceone-${{ SERVICE }}} + pip install --upgrade --pre spaceone-$SERVICE + + - name: Use Environment Variable + # Replace '-' with '_' in the SERVICE environment variable + run: echo "SERVICE=${SERVICE//-/_}" >> $GITHUB_ENV - name: create plugin template run: | - spaceone create-project -s spaceone.${{ SERVICE }}.plugin.collector.skeleton src/plugin + spaceone create-project -s spaceone.$SERVICE.plugin.collector.skeleton src/plugin - name: Push template to master uses: stefanzweifel/git-auto-commit-action@v4