Skip to content

Commit

Permalink
Change install-redis action file
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamazon committed Dec 31, 2023
1 parent a8d0743 commit 3a9304a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/install-redis/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
using: "composite"

steps:
- run: mkdir ~/redis-binaries
- run: mkdir -p ./redis-binaries/${{ inputs.redis-version }}
shell: bash

- uses: actions/checkout@v4
Expand All @@ -24,9 +24,9 @@ runs:
id: cache-redis
with:
path: |
~/redis-binaries/redis-cli
~/redis-binaries/redis-server
key: ${{ runner.os }}-install-redis
./redis-binaries/${{ inputs.redis-version }}/redis-cli
./redis-binaries/${{ inputs.redis-version }}/redis-server
key: ${{ runner.os }}-${{ inputs.redis-version }}-install-redis

- name: Install redis
shell: bash
Expand All @@ -35,8 +35,8 @@ runs:
sudo apt-get update
wget https://github.com/redis/redis/archive/${{ inputs.redis-version }}.tar.gz;
tar -xzvf ${{ inputs.redis-version }}.tar.gz;
pushd redis-${{ inputs.redis-version }} && BUILD_TLS=yes make && sudo mv src/redis-server src/redis-cli ~/redis-binaries && popd;
pushd redis-${{ inputs.redis-version }} && BUILD_TLS=yes make && sudo mv src/redis-server src/redis-cli ./redis-binaries/${{ inputs.redis-version }} && popd;
- name: Copy executable to place
shell: bash
run: sudo cp ~/redis-binaries/redis-server ~/redis-binaries/redis-cli /usr/bin/
run: sudo cp ~/redis-binaries/${{ inputs.redis-version }}/redis-server ~/redis-binaries/${{ inputs.redis-version }}/redis-cli /usr/bin/

0 comments on commit 3a9304a

Please sign in to comment.