Fix GitHub Actions workflow to create PR in VS Code repo #282
+17
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several updates to the GitHub Actions workflow in the
.github/workflows/build.yml
file to improve the deployment process and handle errors more gracefully. The most important changes include making file copy operations forceful, adding a check for changes before committing, and fixing the PR creation process.Improvements to deployment process:
.github/workflows/build.yml
: Modified the file copy commands to use the-f
flag to forcefully overwrite existing files.Error handling enhancements:
.github/workflows/build.yml
: Added a check to determine if there are any changes before attempting to commit, and if not, exit the process with a message indicating no changes to commit.Fixes to PR creation process:
.github/workflows/build.yml
: Fixed the PR creation process by ensuring the correct token is used for authentication and enabling thegh pr create
command.This pull request includes updates to the GitHub Actions workflow for building and pushing changes. The primary changes involve fixing authentication and permissions issues to enable automated git push and pull request creation.Improvements to GitHub Actions workflow:
.github/workflows/build.yml
: Replaced the git push command with one that uses theGITHUB_TOKEN
for authentication to fix permission issues..github/workflows/build.yml
: Updated the token handling for GitHub CLI authentication to useGITHUB_TOKEN
..github/workflows/build.yml
: Re-enabled thegh pr create
command using theGITHUB_TOKEN
for authentication.…ntication