Skip to content

Commit

Permalink
feat: allow to skip mysql server startup
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim authored Apr 3, 2024
1 parent bf137ad commit afbe680
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ runs:
sudo systemctl start mysql
- name: Start External MySQL
if: inputs.mysql-version != 'builtin'
if: inputs.mysql-version != 'builtin' && inputs.mysql-version != 'skip'
shell: bash
run: |
docker run \
Expand All @@ -84,6 +84,11 @@ runs:
--tmpfs /var/lib/mysql:rw,size=1G \
-d \
${{ inputs.mysql-version }}
- name: Configure MySQL Client
if: inputs.mysql-version != 'builtin'
shell: bash
run: |
echo "[client]" > $HOME/.my.cnf
echo "host=127.0.0.1" > $HOME/.my.cnf
echo "user=root" > $HOME/.my.cnf
Expand Down

0 comments on commit afbe680

Please sign in to comment.