@@ -37,41 +37,38 @@ inputs:
3737runs :
3838 using : " composite"
3939 steps :
40- - id : save-importmap-outputs
41- name : Save importmap outputs
40+ - id : run-importmaps
41+ name : Run importmap audit and outdated
4242 shell : bash
4343 working-directory : ${{ inputs.rails-root }}
4444 run : |
4545 {
46- echo importmap-audit<<IMPORTMAP_AUDIT_OUTPUT
46+ echo " importmap-audit<<IMPORTMAP_AUDIT_OUTPUT"
4747 bin/importmap audit 2>&1 || true
4848 echo IMPORTMAP_AUDIT_OUTPUT
4949 } >> "$GITHUB_OUTPUT"
5050
5151 {
52- echo importmap-outdated<<IMPORTMAP_OUTDATED_OUTPUT
52+ echo " importmap-outdated<<IMPORTMAP_OUTDATED_OUTPUT"
5353 bin/importmap outdated 2>&1 || true
5454 echo IMPORTMAP_OUTDATED_OUTPUT
5555 } >> "$GITHUB_OUTPUT"
5656
57- bin/importmap audit 2>&1 | tee /tmp/importmap-audit.txt || true
58- bin/importmap outdated 2>&1 | tee /tmp/importmap-outdated.txt || true
59-
6057 - name : Run importmap-update
6158 shell : bash
6259 working-directory : ${{ github.action_path }}
6360 env :
64- BUNDLE_GEMFILE : ${{ github.action_path }}/Gemfile
65- RAILS_ROOT : ${{ inputs.rails-root }}
66- GITHUB_TOKEN : ${{ inputs.github-token }}
67- GITHUB_REPOSITORY : ${{ github.repository }}
68- INPUT_CONFIG_FILE : ${{ inputs.config-file }}
69- IMPORTMAP_BASE_BRANCH : ${{ inputs.base-branch }}
70- IMPORTMAP_DRY_RUN : ${{ inputs.dry-run }}
71- IMPORTMAP_AUTHOR_NAME : ${{ inputs.author-name }}
72- IMPORTMAP_AUTHOR_EMAIL : ${{ inputs.author-email }}
73- IMPORTMAP_OUTDATED_FILE : ${{ runner.temp }}/ importmap-outdated.txt
74- IMPORTMAP_AUDIT_FILE : ${{ runner.temp }}/ importmap-audit.txt
61+ BUNDLE_GEMFILE : ${{ github.action_path }}/Gemfile
62+ RAILS_ROOT : ${{ inputs.rails-root }}
63+ GITHUB_TOKEN : ${{ inputs.github-token }}
64+ GITHUB_REPOSITORY : ${{ github.repository }}
65+ INPUT_CONFIG_FILE : ${{ inputs.config-file }}
66+ IMPORTMAP_BASE_BRANCH : ${{ inputs.base-branch }}
67+ IMPORTMAP_DRY_RUN : ${{ inputs.dry-run }}
68+ IMPORTMAP_AUTHOR_NAME : ${{ inputs.author-name }}
69+ IMPORTMAP_AUTHOR_EMAIL : ${{ inputs.author-email }}
70+ IMPORTMAP_OUTDATED_OUTPUT : ${{ steps.run-importmaps.outputs. importmap-outdated }}
71+ IMPORTMAP_AUDIT_OUTPUT : ${{ steps.run-importmaps.outputs. importmap-audit }}
7572 run : |
7673 bundle install
7774 bundle exec exe/importmap-update 2>&1 | tee "${IMPORTMAP_RUN_LOG:-/dev/null}"
0 commit comments