Skip to content

Commit 3dfc0a4

Browse files
authored
Switch to composite action (#42)
1 parent 408232a commit 3dfc0a4

File tree

2 files changed

+23
-30
lines changed

2 files changed

+23
-30
lines changed

action.yml

+23-2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,27 @@ inputs:
6565
If not set this option, the GITHUB_REF environment variable (automatically set by GitHub Actions) will be used.
6666
required: false
6767

68+
# Note:
69+
# - inputs.* should be manually mapped to INPUT_* due to https://github.com/actions/runner/issues/665
70+
# - Use GITHUB_*/RUNNER_* instead of github.*/runner.* due to https://github.com/actions/runner/issues/2185
6871
runs:
69-
using: node16
70-
main: main.js
72+
using: composite
73+
steps:
74+
- run: bash --noprofile --norc "${GITHUB_ACTION_PATH:?}/main.sh"
75+
shell: bash
76+
env:
77+
INPUT_BIN: ${{ inputs.bin }}
78+
INPUT_ARCHIVE: ${{ inputs.archive }}
79+
INPUT_TARGET: ${{ inputs.target }}
80+
INPUT_FEATURES: ${{ inputs.features }}
81+
INPUT_NO_DEFAULT_FEATURES: ${{ inputs.no_default_features }}
82+
INPUT_MANIFEST_PATH: ${{ inputs.manifest_path }}
83+
INPUT_TAR: ${{ inputs.tar }}
84+
INPUT_ZIP: ${{ inputs.zip }}
85+
INPUT_INCLUDE: ${{ inputs.include }}
86+
INPUT_ASSET: ${{ inputs.asset }}
87+
INPUT_LEADING_DIR: ${{ inputs.leading_dir }}
88+
INPUT_BUILD_TOOL: ${{ inputs.build_tool }}
89+
INPUT_CHECKSUM: ${{ inputs.checksum }}
90+
INPUT_TOKEN: ${{ inputs.token }}
91+
INPUT_REF: ${{ inputs.ref }}

main.js

-28
This file was deleted.

0 commit comments

Comments
 (0)