jbangdev / jbang-action

Docker image and Github Action to run jbang scripts
https://jbang.dev
MIT License
40 stars 11 forks source link

Example in README indented incorrectly #1

Closed quintesse closed 4 years ago

quintesse commented 4 years ago

It's a little hard to read this way becuase the indenting is not correct. I think this is the correct one:

on: [push]

jobs:
  jbang:
    runs-on: ubuntu-latest
    name: A job to run jbang
    steps:
    - name: checkout
      uses: actions/checkout@v1
    - uses: actions/cache@v1
      with:
        path: /root/.jbang
        key: ${{ runner.os }}-jbang-${{ hashFiles('*.java') }}
        restore-keys: |
          ${{ runner.os }}-jbang-
    - name: jbang
      uses: maxandersen/jbang-action@v0.16.1
      with:
        script: createissue.java
        args: "my world"
      env:
        JBANG_REPO: /root/.jbang/repository
        GITHUB_TOKEN: ${{ secrets.ISSUE_GITHUB_TOKEN }}

You probably should stop using TABs in files that indent-sensitive ;-)

maxandersen commented 4 years ago

wasn't actually problem of tab or spaces but that spotless plugin for gradle can't handle yaml style indention in markdown ;/

maxandersen commented 4 years ago

fixed indention and ignoring the file in validation step.