chore(deps): update dependency github.com/redhatinsights/konflux-pipe… #533
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Semantic release | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| jobs: | |
| semantic-release: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.8] | |
| steps: | |
| - name: Cancel previous builds | |
| uses: rokroskar/workflow-run-cleanup-action@master | |
| env: | |
| GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false # The auth token is persisted in the local git config. semantic-release picks this one instead of GH_TOKEN | |
| - name: Configure SSH commit signing | |
| env: | |
| SIGNING_KEY: ${{ secrets.SEMANTIC_RELEASE_SIGNING_KEY }} | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "$SIGNING_KEY" > ~/.ssh/signing_key | |
| chmod 600 ~/.ssh/signing_key | |
| git config --global gpg.format ssh | |
| git config --global user.signingkey ~/.ssh/signing_key | |
| git config --global commit.gpgSign true | |
| git config --global tag.gpgSign true | |
| - name: Generate token | |
| id: app-token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.SEMANTIC_RELEASE_APP_ID }} | |
| private-key: ${{ secrets.SEMANTIC_RELEASE_PK }} | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run python-semantic-release | |
| run: | | |
| pip install python-semantic-release | |
| VERSION=$(semantic-release version --print) | |
| sed -i "s/@version .*/@version $VERSION/" manager/manager.go | |
| git add manager/manager.go | |
| semantic-release version | |
| env: | |
| GH_TOKEN: "${{ steps.app-token.outputs.token }}" |