Skip to content

Commit

Permalink
Merge pull request #12 from hidakatsuya/fix-can-not-run-script
Browse files Browse the repository at this point in the history
Fix a problem that scripts/*.sh can't be executed
  • Loading branch information
hidakatsuya authored Jul 18, 2024
2 parents 3ba30ea + 15b3e4b commit ee70fd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ runs:
path: ${{ inputs.path }}

- name: Define Redmine version environment variables
run: ./scripts/set-version-envs.sh
run: $GITHUB_ACTION_PATH/scripts/set-version-envs.sh
shell: bash
env:
REDMINE_DIR: ${{ inputs.path }}
Expand All @@ -62,30 +62,30 @@ runs:
MINIUMUM_SUPPORTED_REDMINE_VERSION: "402" # v4.2.x

- name: Set up base environment
run: ./scripts/setup-base.sh
run: $GITHUB_ACTION_PATH/scripts/setup-base.sh
shell: bash
env:
REDMINE_DIR: ${{ inputs.path }}

- name: Set up PostgreSQL database
if: ${{ startsWith(inputs.database, 'postgres:') }}
run: ./scripts/setup-db-postgresql.sh
run: $GITHUB_ACTION_PATH/scripts/setup-db-postgresql.sh
shell: bash
env:
REDMINE_DIR: ${{ inputs.path }}
DATABASE: ${{ inputs.database }}

- name: Set up MySQL database
if: ${{ startsWith(inputs.database, 'mysql:') }}
run: ./scripts/setup-db-mysql.sh
run: $GITHUB_ACTION_PATH/scripts/setup-db-mysql.sh
shell: bash
env:
REDMINE_DIR: ${{ inputs.path }}
DATABASE: ${{ inputs.database }}

- name: Set up SQLite3 database
if: ${{ inputs.database == 'sqlite3' }}
run: ./scripts/setup-db-sqlite3.sh
run: $GITHUB_ACTION_PATH/scripts/setup-db-sqlite3.sh
shell: bash
env:
REDMINE_DIR: ${{ inputs.path }}
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ esac

echo "Running scripts/setup-base-$setup_version.sh for Redmine $REDMINE_VERSION ..."

./scripts/setup-base-$setup_version.sh
$GITHUB_ACTION_PATH/scripts/setup-base-$setup_version.sh

0 comments on commit ee70fd9

Please sign in to comment.