Skip to content

Commit

Permalink
add git status for troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Oct 29, 2024
1 parent 1bc9b8f commit 9836554
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/actions/commit_and_push/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Prerequisite

This action assumes that the repository has already been checked out before
calling the action, typically using `actions/checkout@v4`. If you have not
checked out the code in a previous step, make sure to do so to avoid errors.

This action does **not** perform a checkout action itself because it would be
redundant. This action is part of the repository's codebase, so if the code
hasn't already been checked out, the action itself wouldn't even be available to
call.

## Example Usage

```yaml
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/commit_and_push
with:
gpg_signing_key: ${{ secrets.GPG_SIGNING_KEY }}
branch-name: 'branch-name'
commit-message: 'commit message'
```
4 changes: 4 additions & 0 deletions .github/actions/commit_and_push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ runs:
# Create and switch to new branch
git switch -c "${{ inputs.branch-name }}"
# Show status of working directory
echo "Current git status:"
git status
# Add and commit changes if there are any
git add --all
if ! git diff --cached --quiet; then
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/release_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ jobs:
run: |
AZLE_VERBOSE=true npx azle install-global-dependencies --rust --wasi2ic
- uses: ./.github/actions/configure_git
with:
gpg_signing_key: ${{ secrets.GPG_SIGNING_KEY }}

- name: Update version and build templates
run: |
VERSION=${{ steps.get-version.outputs.release-version }}
Expand Down

0 comments on commit 9836554

Please sign in to comment.