Skip to content

fix: revert write permissions for PR #88

fix: revert write permissions for PR

fix: revert write permissions for PR #88

on:
push:
branches:
- "main"
- "develop"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
pull_request:
branches: [main, develop]
jobs:
compliance-copyrights:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: apache/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.7"
- run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.25/scripts/download-actionlint.bash)
- uses: pre-commit/[email protected]
publish:
needs:
- compliance-copyrights
- pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: false
persist-credentials: false
- uses: splunk/[email protected]
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 }}
extra_plugins: |
@google/semantic-release-replace-plugin
update-semver:
if: startsWith(github.ref, 'refs/tags/v')
needs: publish
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: haya14busa/action-update-semver@v1