Skip to content

Commit

Permalink
fix(packaging): do not escape $ in stream connectors packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
kduret committed Feb 13, 2024
1 parent 3af6e53 commit c61be40
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/stream-connectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,19 @@ jobs:
DEB_DEPENDENCIES=""
RPM_DEPENDENCIES=""
if [ "${{ matrix.connector_path }}" = "kafka" ]; then
DEB_DEPENDENCIES='librdkafka1,"lua-cffi (>= \${MAJOR_VERSION}~)","lua-cffi (<< \${NEXT_MAJOR_VERSION}~)"'
RPM_DEPENDENCIES='librdkafka,lua-cffi >= \${MAJOR_VERSION},lua-cffi \${NEXT_MAJOR_VERSION}'
DEB_DEPENDENCIES='librdkafka1,"lua-cffi (>= ${MAJOR_VERSION}~)","lua-cffi (<< ${NEXT_MAJOR_VERSION}~)"'
RPM_DEPENDENCIES='librdkafka,lua-cffi >= ${MAJOR_VERSION},lua-cffi ${NEXT_MAJOR_VERSION}'
elif [ "${{ matrix.connector_path }}" = "pagerduty" ]; then
DEB_DEPENDENCIES='lua-tz (>= \${MAJOR_VERSION}~)","lua-tz (<< \${NEXT_MAJOR_VERSION}~)"'
RPM_DEPENDENCIES='lua-tz >= \${MAJOR_VERSION},lua-tz \${NEXT_MAJOR_VERSION}'
DEB_DEPENDENCIES='lua-tz (>= ${MAJOR_VERSION}~)","lua-tz (<< ${NEXT_MAJOR_VERSION}~)"'
RPM_DEPENDENCIES='lua-tz >= ${MAJOR_VERSION},lua-tz ${NEXT_MAJOR_VERSION}'
elif [ "${{ matrix.connector_path }}" = "splunk" ]; then
DEB_DEPENDENCIES='lua-tz (>= \${MAJOR_VERSION}~)","lua-tz (<< \${NEXT_MAJOR_VERSION}~)"'
RPM_DEPENDENCIES='lua-tz >= \${MAJOR_VERSION},lua-tz \${NEXT_MAJOR_VERSION}'
DEB_DEPENDENCIES='lua-tz (>= ${MAJOR_VERSION}~)","lua-tz (<< ${NEXT_MAJOR_VERSION}~)"'
RPM_DEPENDENCIES='lua-tz >= ${MAJOR_VERSION},lua-tz ${NEXT_MAJOR_VERSION}'
fi
sed -i "s/@RPM_DEPENDENCIES@/$RPM_DEPENDENCIES/g;" ./stream-connectors/packaging/connectors/centreon-stream-connectors.yaml
sed -i "s/@DEB_DEPENDENCIES@/$DEB_DEPENDENCIES/g;" ./stream-connectors/packaging/connectors/centreon-stream-connectors.yaml
cat ./stream-connectors/packaging/connectors/centreon-stream-connectors.yaml
shell: bash

- name: Export package version
Expand Down

0 comments on commit c61be40

Please sign in to comment.