diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c2c62fc8a76..3d9ff692b65 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,12 +1,34 @@ name: Docs on: - workflow_dispatch: + workflow_dispatch: push: tags: - '[0-9]+.[0-9]+.[0-9]+*' jobs: + update_ref: + runs-on: ubuntu-latest + + if: startsWith( github.ref, 'refs/tags/') + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: master + + - name: "remove API reference commit SHA" + run: rm -rf reference.txt + continue-on-error: true + + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "TASK: Updating API ref SHA" + commit_user_name: automation-commercetools + commit_user_email: automation@commercetools.com + commit_author: Auto Mation + unittests: name: Build Docs