Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add splunk update-semver #160

Merged
merged 2 commits into from
May 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
python-version: "3.7"
- uses: pre-commit/[email protected]
build_action:
build_release:
runs-on: ubuntu-latest
needs: pre-commit
permissions:
Expand Down Expand Up @@ -85,13 +85,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
artemrys marked this conversation as resolved.
Show resolved Hide resolved
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 }}