Skip to content

Commit 4887f3c

Browse files
committed
Swap working directory
1 parent e787367 commit 4887f3c

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
with:
5555
github-token: ${{ secrets.GITHUB_TOKEN }}
5656
dry-run: "true"
57-
working-directory: /tmp/test-app
57+
rails-root: /tmp/test-app
5858

5959
- name: Assert all outdated packages appear in dry-run output
6060
run: |

action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ inputs:
3232
description: "Git author email for commits."
3333
required: false
3434
default: "github-actions[bot]@users.noreply.github.com"
35-
working-directory:
35+
rails-root:
3636
description: "Directory containing the Rails app to run against. Useful when the app lives in a subdirectory or for integration testing."
3737
required: false
3838
default: "."
@@ -43,18 +43,20 @@ runs:
4343
- name: Set up Ruby
4444
uses: ruby/setup-ruby@v1
4545
with:
46-
bundler-cache: true
46+
bundler-cache: false
4747
working-directory: ${{ github.action_path }}
4848

4949
- name: Run importmap-update
5050
shell: bash
51-
working-directory: ${{ inputs.working-directory }}
51+
working-directory: ${{ github.action_path }}
5252
env:
53+
BUNDLE_GEMFILE: ${{ github.action_path }}/Gemfile
54+
RAILS_ROOT: ${{ inputs.rails-root }}
5355
GITHUB_TOKEN: ${{ inputs.github-token }}
5456
GITHUB_REPOSITORY: ${{ github.repository }}
5557
INPUT_CONFIG_FILE: ${{ inputs.config-file }}
5658
IMPORTMAP_BASE_BRANCH: ${{ inputs.base-branch }}
5759
IMPORTMAP_DRY_RUN: ${{ inputs.dry-run }}
5860
IMPORTMAP_AUTHOR_NAME: ${{ inputs.author-name }}
5961
IMPORTMAP_AUTHOR_EMAIL: ${{ inputs.author-email }}
60-
run: bundle exec ${{ github.action_path }}/exe/importmap-update 2>&1 | tee "${IMPORTMAP_RUN_LOG:-/dev/null}"
62+
run: bundle exec exe/importmap-update 2>&1 | tee "${IMPORTMAP_RUN_LOG:-/dev/null}"

0 commit comments

Comments
 (0)