diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml index dd948f3..dc47192 100644 --- a/.gitea/workflows/lint.yaml +++ b/.gitea/workflows/lint.yaml @@ -8,13 +8,13 @@ jobs: runs-on: cth-ubuntu-latest steps: - uses: actions/checkout@v4 - - run: | - ls -la /workspace/atomaka/atomaka.com - docker run \ - --rm \ - --volume /workspace/atomaka/atomaka.com/:/data \ - docker.atomaka.com/mdformat \ - ls -la /data/ + - uses: addnab/docker-run-action@v3 + with: + image: docker.atomaka.com/mdformat:latest + options: --volumes-from=${{ env.JOB_CONTAINER_NAME }} + run: | + cd ${{ github.workspace }} + mdformat --check _posts/ build: runs-on: cth-ubuntu-latest steps: