Skip to content

git-helper: fix bad clearing of lines #680

git-helper: fix bad clearing of lines

git-helper: fix bad clearing of lines #680

Workflow file for this run

name: dorothy
'on':
- push
- pull_request
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
env:
DOROTHY: ${{ github.workspace }}
NO_TTY: yes
VERBOSE: yes
CI_COMMIT_MESSAGE: 'ci: adjustments'
CI_COMMIT_NAME: 'Continuous Integration'
CI_COMMIT_EMAIL: '[email protected]'
steps:
- name: 'Checkout'
uses: actions/checkout@v2
- name: 'Cache XDG'
id: cache-xdg
uses: actions/cache@v3
with:
path: ~/.local
key: ${{ runner.os }}
- name: 'Dorothy Development'
shell: bash
run: |
chmod +x "$DOROTHY/commands/"*
source "$DOROTHY/sources/login.sh"
dorothy dev
- name: 'Trunk Format'
if: github.event_name == 'push'
shell: bash
run: |
source "$DOROTHY/sources/login.sh"
dorothy format || :
if git diff --quiet &>/dev/null; then
echo 'Already formatted.'
else
git config --global user.name "${{ env.CI_COMMIT_NAME }}"
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}"
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
fi
- name: 'Trunk Check'
uses: trunk-io/trunk-action@v1
- name: 'Dorothy Test'
shell: 'script -q -e -c "bash {0}"'
run: |
source "$DOROTHY/sources/login.sh"
dorothy test