From 558ca18ba453bee8ef61d81b2d4284ce64c29841 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 22 Sep 2024 00:17:16 +0200 Subject: [PATCH] ci: fix 2 --- .github/workflows/docs.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9e93552..d83b540 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,6 +5,8 @@ on: - main jobs: publish: + permissions: + contents: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -15,11 +17,10 @@ jobs: - run: corepack enable yarn - run: yarn install - run: git checkout -b typedoc - - run: git push --set-upstream origin typedoc - - run: yarn typedoc + - run: git add . - name: Set outputs id: vars run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - uses: actions4git/add-commit-push@v1 - with: - commit-message: 'Update typedoc to commit ${{ steps.vars.outputs.sha_short }}' \ No newline at end of file + - run: git commit -m "Update typedoc to commit ${{ steps.vars.outputs.sha_short }}" + - run: git push --set-upstream origin typedoc + - run: yarn typedoc \ No newline at end of file