diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a4f4ea8..76b5148 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,12 @@ on: - "main" - "develop" +permissions: + contents: write + packages: read + pull-requests: read + statuses: write + jobs: pre-commit: runs-on: ubuntu-latest @@ -34,7 +40,7 @@ jobs: with: python-version: "3.7" - uses: pre-commit/action@v3.0.1 - build_action: + build_release: runs-on: ubuntu-latest needs: pre-commit permissions: @@ -85,13 +91,15 @@ jobs: passphrase: ${{ secrets.SA_GPG_PASSPHRASE }} update-semver: if: startsWith(github.ref, 'refs/tags/v') - needs: build_action + needs: build_release runs-on: ubuntu-latest - permissions: - contents: write - packages: read - pull-requests: read - statuses: write steps: - uses: actions/checkout@v4 - - uses: haya14busa/action-update-semver@v1 + - uses: splunk/addonfactory-update-semver@v1 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }} + with: + git_committer_name: ${{ secrets.SA_GH_USER_NAME }} + git_committer_email: ${{ secrets.SA_GH_USER_EMAIL }} + gpg_private_key: ${{ secrets.SA_GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.SA_GPG_PASSPHRASE }}