Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make action a "composite" action #12

Open
lihop opened this issue Feb 11, 2024 · 0 comments
Open

Make action a "composite" action #12

lihop opened this issue Feb 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lihop
Copy link
Owner

lihop commented Feb 11, 2024

Using actions/github-script would make it possible to run the index.js script via a composite action. Using a composite action will allow us to perform other actions (such as installing mesa-dist-win) using other dedicated actions rather than our home-made ones.
index.js will need to be updated to export the main function and take core, exec, and github as inputs.

runs:
  using: "composite"
  steps:
    - name: Setup Godot
      uses: "actions/github-script@v7"
      with:
        script: |
          const script = require("${{github.action_path}}/index.js")
          script({core, exec, github})
@lihop lihop added the enhancement New feature or request label Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant