Skip to content
Merged
Changes from all commits
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
19 changes: 15 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,31 @@ jobs:
build:
runs-on: ubuntu-latest
name: Build and Release
env:
GIT_COMMIT_AUTHOR_EMAIL: ${{ vars.ALLURE_CI_APP_USER_ID }}+${{ vars.ALLURE_CI_APP_SLUG }}[bot]@users.noreply.github.com
GIT_COMMIT_AUTHOR_NAME: ${{ vars.ALLURE_CI_APP_SLUG }}[bot]
steps:
- name: 'Check release version'
run: |
expr "${{ github.event.inputs.releaseVersion }}" : '^v\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\(-beta\.[0-9][0-9]*\)\{0,1\}\)$'

- name: Create GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.ALLURE_CI_APP_CLIENT_ID }}
private-key: ${{ secrets.ALLURE_CI_APP_PRIVATE_KEY }}
permission-contents: write

- uses: actions/checkout@v6
with:
ref: main
token: ${{ secrets.QAMETA_CI }}
token: ${{ steps.app-token.outputs.token }}

- name: 'Configure CI Git User'
run: |
git config --global user.name qameta-ci
git config --global user.email qameta-ci@qameta.io
git config --global user.name "${GIT_COMMIT_AUTHOR_NAME}"
git config --global user.email "${GIT_COMMIT_AUTHOR_EMAIL}"

- uses: actions/setup-node@v6
with:
Expand All @@ -61,7 +72,7 @@ jobs:
generate_release_notes: true
target_commitish: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.QAMETA_CI }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Tag new target
run: git tag -f ${{ github.event.inputs.majorReleaseVersion }} ${{ github.event.inputs.releaseVersion }}
Expand Down
Loading