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

fix(action): specify shell for run steps #2

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ runs:

- name: upgrade tools in mise
run: mise upgrade --bump
shell: bash

- name: determine if there are changes
run: |
Expand All @@ -31,17 +32,20 @@ runs:
else
echo "CHANGES=true" >> $GITHUB_ENV
fi
shell: bash

- name: configure git
if: env.CHANGES == 'true'
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
shell: bash

- name: determine branch name
if: env.CHANGES == 'true'
run: |
echo "BRANCH_NAME=mise-updates-$(date +'%Y-%m-%d')" >> $GITHUB_ENV
shell: bash

- name: commit and push changes
if: env.CHANGES == 'true'
Expand All @@ -50,6 +54,7 @@ runs:
git add .mise.toml
git commit -m 'Update mise tool versions'
git push --set-upstream origin $BRANCH_NAME
shell: bash

- name: create pull request
if: env.CHANGES == 'true'
Expand All @@ -61,3 +66,4 @@ runs:
env:
# Required for the `gh` CLI
GH_TOKEN: ${{ github.token }}
shell: bash