diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 8b8d671e..1a10d9ef 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -74,7 +74,7 @@ jobs: needs: verify-version permissions: contents: read - packages: read + packages: write steps: - name: Get Git Tag run: echo "TAG_VERSION=$( echo ${{github.ref_name}} | sed 's/[^0-9.]//g' )" >> $GITHUB_ENV @@ -161,20 +161,13 @@ jobs: runs-on: ubuntu-latest needs: verify-version permissions: - contents: read + contents: write packages: read steps: - name: Get Git Tag run: echo "TAG_VERSION=$( echo ${{github.ref_name}} | sed 's/[^0-9.]//g' )" >> $GITHUB_ENV - name: Check out repository code uses: actions/checkout@v4 - with: - ssh-key: ${{secrets.SSH_KEY}} - - name: Install SSH key # Install SSH key to connect to github repos - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.SSH_KEY }} - known_hosts: ${{ secrets.KNOWN_HOSTS }} - name: Set up JDK 11 uses: actions/setup-java@v4 with: @@ -185,7 +178,13 @@ jobs: uses: actions/setup-node@v4 - name: Install Redocly CLI run: npm install -g @redocly/cli@latest + - name: Set Git user + run: | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" - name: Publish API doc run: | ./generate-full-redoc-static-html.sh ./upload-redoc-static-html-to-github.sh ${{ env.TAG_VERSION }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}