ci: run konflux test build on PRs to IoP branches #1908
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: Checkout | |
| uses: actions/checkout@v2 | |
| 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: Cancel previous builds | |
| uses: rokroskar/workflow-run-cleanup-action@master | |
| env: | |
| GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run python-semantic-release | |
| run: | | |
| pip install python-semantic-release | |
| semantic-release version | |
| env: | |
| GH_TOKEN: "${{ secrets.GH_TOKEN }}" |