mirror of
https://github.com/tj-actions/install-postgresql.git
synced 2024-12-20 01:18:18 +00:00
Update action.yml
This commit is contained in:
parent
52c3783476
commit
75b8367089
1 changed files with 0 additions and 22 deletions
22
action.yml
22
action.yml
|
@ -9,28 +9,6 @@ inputs:
|
|||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Get cache directory
|
||||
id: cache-dir
|
||||
run: |
|
||||
cache_dir=""
|
||||
if [[ "${{ runner.os }}" == "macOS" ]]; then
|
||||
cache_dir="$(brew --cache postgresql@${{ inputs.postgresql_version }})"
|
||||
elif [[ "${{ runner.os }}" == "Windows" ]]; then
|
||||
cache_dir="~\AppData\Local\Temp\chocolatey"
|
||||
fi
|
||||
echo "cache_dir=$cache_dir" >> "$GITHUB_OUTPUT"
|
||||
shell: bash
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v3
|
||||
id: cache-postgresql
|
||||
if: steps.cache-dir.outputs.cache_dir != ''
|
||||
with:
|
||||
path: ${{ steps.cache-dir.outputs.cache_dir }}
|
||||
key: ${{ runner.os }}-postgresql-${{ inputs.postgresql_version }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-postgresql-
|
||||
|
||||
- run: |
|
||||
bash $GITHUB_ACTION_PATH/entrypoint.sh
|
||||
shell: bash
|
||||
|
|
Loading…
Add table
Reference in a new issue