Adjusted triggers to include pull_request and workflow_dispatch: Ensured the workflow activates correctly when triggered by pull requests.
Incorporated conditional steps for fetching and pushing changes: Applied conditions specifically for scenarios where the workflow is activated by a pull request.
Removed shell: bash setting: This configuration was unnecessary as the default shell is automatically used, unless an alternative shell is required.
These adjustments aim to resolve the issue related to the undefined 'ref' in pull requests.
pull_request
andworkflow_dispatch
: Ensured the workflow activates correctly when triggered by pull requests.shell: bash
setting: This configuration was unnecessary as the default shell is automatically used, unless an alternative shell is required.These adjustments aim to resolve the issue related to the undefined 'ref' in pull requests.