Skip to content

Commit

Permalink
fix: version
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzabessa committed Jan 8, 2024
1 parent 77b738e commit 94cb22a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
11 changes: 4 additions & 7 deletions .github/actions/package-nfpm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ inputs:
distrib:
description: The package distrib
required: true
major_version:
description: The major version
required: false
minor_version:
description: The minor version
version:
description: The version
required: false
release:
description: The package release number
Expand Down Expand Up @@ -68,17 +65,17 @@ runs:
exit 1
fi
export VERSION="${{ inputs.version }}"
export RPM_SIGNING_KEY_FILE="$(pwd)/key.gpg"
export RPM_SIGNING_KEY_ID="$RPM_GPG_SIGNING_KEY_ID"
export NFPM_RPM_PASSPHRASE="$RPM_GPG_SIGNING_PASSPHRASE"
echo "Current directory: $(pwd)"
version=`date '+%Y%m%d'`
for FILE in ${{ inputs.nfpm_file_pattern }}; do
DIRNAME=$(dirname $FILE)
BASENAME=$(basename $FILE)
cd $DIRNAME
sed -i "s/@luaver@/$luaver/g" $BASENAME
sed -i "s/@VERSION@/$version/g" $BASENAME
sed -i "s/@COMMIT_HASH@/${{ inputs.commit_hash }}/g" $BASENAME
nfpm package --config $BASENAME --packager ${{ inputs.package_extension }}
cd -
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/stream-connectors-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ jobs:
distrib: ${{ matrix.distrib }}
package_extension: ${{ matrix.package_extension }}
arch: all
version: "`date '+%Y%m%d'`"
commit_hash: ${{ github.sha }}
cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }}
rpm_gpg_key: ${{ secrets.RPM_GPG_SIGNING_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion dependencies/lua-cffi/packaging/lua-cffi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "lua-cffi"
arch: "${ARCH}"
platform: "linux"
version_schema: "none"
version: "@VERSION@"
version: "${VERSION}"
release: "1${DIST}"
section: "default"
priority: "optional"
Expand Down
2 changes: 1 addition & 1 deletion dependencies/lua-curl/packaging/lua-curl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "lua-curl"
arch: "${ARCH}"
platform: "linux"
version_schema: "none"
version: "@VERSION@"
version: "${VERSION}"
release: "5${DIST}"
section: "default"
priority: "optional"
Expand Down
2 changes: 1 addition & 1 deletion dependencies/lua-tz/packaging/lua-tz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "lua-tz"
arch: "${ARCH}"
platform: "linux"
version_schema: "none"
version: "@VERSION@"
version: "${VERSION}"
release: "1${DIST}"
section: "default"
priority: "optional"
Expand Down

0 comments on commit 94cb22a

Please sign in to comment.