Skip to content

Commit

Permalink
Merge pull request #2 from PrefectHQ/specify-shell
Browse files Browse the repository at this point in the history
fix(action): specify shell for run steps
  • Loading branch information
mitchnielsen authored Jan 31, 2025
2 parents 93069ac + 9760a98 commit 34841f6
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 34841f6

Please sign in to comment.