diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bddaea8c..4bd227d3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,6 +9,8 @@ jobs: build: name: run Inkycal tests runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v3 @@ -21,6 +23,7 @@ jobs: run: | git clone --single-branch https://github.com/aceinnolab/Inkycal - name: Creating virtual environment generate docs and install dependencies + run: | cd Inkycal echo "$PWD" @@ -32,6 +35,12 @@ jobs: cd docsource && make html make github cd .. + - name: Commit and Push Changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: main + commit_message: auto-generated docs + commit_options: '--no-verify' - name: Setup test environment and run tests env: OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }} @@ -39,7 +48,6 @@ jobs: TEST_ICAL_URL: ${{ secrets.TEST_ICAL_URL }} TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }} run: | - echo "$PWD" cd inkycal/tests wget https://raw.githubusercontent.com/aceinnolab/Inkycal/assets/tests/settings.json for f in *.py; do python3 "$f"; done