Skip to content

Commit

Permalink
Update path where scripts will run
Browse files Browse the repository at this point in the history
  • Loading branch information
sclark3-godaddy committed Dec 6, 2023
1 parent 85c91ae commit 18e778d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ runs:
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '14.20.1'
node-version: '16.x'
- name: Get NPM cache directory to use
id: npm-cache-dir
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
working-directory: ${GITHUB_ACTION_PATH}
shell: bash
- name: Setup NPM cache
uses: actions/cache@v3
Expand All @@ -69,22 +70,28 @@ runs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
working-directory: ${GITHUB_ACTION_PATH}
- name: Install NPM dependencies
run: npm install
working-directory: ${GITHUB_ACTION_PATH}
shell: bash
- name: Update plugin version
if: "${{ inputs.plugin_version != '' }}"
run: npm run update-plugin-version --plugin_version="${{ inputs.plugin_version }}" --plugin_version_constant_name="${{ inputs.plugin_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
working-directory: ${GITHUB_ACTION_PATH}
shell: bash
- name: Update tested WP version
if: "${{ inputs.tested_wp_version != '' }}"
run: npm run update-tested-wp-version --tested_wp_version="${{ inputs.tested_wp_version }}" --tested_wp_version_constant_name="${{ inputs.tested_wp_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
working-directory: ${GITHUB_ACTION_PATH}
shell: bash
- name: Update minimum WP version
if: "${{ inputs.minimum_wp_version != '' }}"
run: npm run update-minimum-wp-version --minimum_wp_version="${{ inputs.minimum_wp_version }}" --minimum_wp_version_constant_name="${{ inputs.minimum_wp_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
working-directory: ${GITHUB_ACTION_PATH}
shell: bash
- name: Update minimum PHP version
if: "${{ inputs.minimum_php_version != '' }}"
run: npm run update-minimum-php-version --minimum_php_version="${{ inputs.minimum_php_version }}" --minimum_php_version_constant_name="${{ inputs.minimum_php_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
working-directory: ${GITHUB_ACTION_PATH}
shell: bash

0 comments on commit 18e778d

Please sign in to comment.