aweris / gale

GitHub Action Local Executor
Apache License 2.0
143 stars 4 forks source link

Bug: Workflows Fail on Local-Only Branches due to Git History Pulls and API Calls #102

Open aweris opened 1 year ago

aweris commented 1 year ago

Description

While running gale on local-only branches, certain workflows are failing. It appears that specific actions, like the checkout action, attempt to pull the complete Git history. This, combined with some API calls meant for the GitHub environment, results in errors when executed on branches that are strictly local.

Current Behavior:

Desired Behavior:

Steps to Reproduce:

  1. Create a local-only branch without pushing it to the remote repository.
  2. Run a workflow with gale that includes actions like checkout.
  3. Observe failures related to pulling complete Git history or making specific API calls.

Potential Solutions:

  1. Implement a mechanism to detect when gale is being run on a local-only branch and adjust the behavior of actions like checkout accordingly.
  2. Offer mock data or bypass certain API calls that are known to cause issues when run in a local context.
  3. Enhance error messaging to guide users on potential workarounds or fixes when encountering such issues.

Additional Notes: