fix(deps): update module github.com/bradleyfalzon/ghinstallation/v2 t… #154
This file contains 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: create-release | |
on: | |
push: | |
branches: [main] | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
if: ${{ github.ref == 'refs/heads/main' && github.actor == 'liatrio-otel-collector-release[bot]' && startsWith(github.event.head_commit.message, 'Prepare liatrio-otel for version') }} | |
steps: | |
- name: Generate a token | |
id: generate_token | |
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0 | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
owner: ${{ github.repository_owner }} | |
- name: Get GitHub App User ID | |
id: get-user-id | |
run: echo "user-id=$(gh api "/users/${{ steps.generate_token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" | |
env: | |
GH_TOKEN: ${{ steps.generate_token.outputs.token }} | |
- name: Clone repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
token: ${{ steps.generate_token.outputs.token }} | |
fetch-depth: 0 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version: 1.23 | |
- name: Install tools | |
run: make install-tools | |
- name: Get changelog | |
id: get_tag | |
uses: mathieudutour/github-tag-action@a22cf08638b34d5badda920f9daf6e72c477b07b # v6.2 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
custom_release_rules: "chore:patch:🧹 Chores,fix:patch:🐛 Bug Fixes,feat:minor:✨ Features" | |
dry_run: true | |
default_bump: false | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_KEY_PASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Multimod Push Tags | |
run: | | |
set -eo pipefail | |
git config --global user.name '${{ steps.generate_token.outputs.app-slug }}[bot]' | |
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}@users.noreply.github.com' | |
./.tools/multimod tag --module-set-name liatrio-otel --commit-hash '${{ github.sha }}' --print-tags | |
git push --tags | |
- name: Create GitHub Release | |
env: | |
# GH_TOKEN: ${{ secrets.TEST_PAT_TRIGGER }} | |
GH_TOKEN: ${{ steps.generate_token.outputs.token }} | |
run: | | |
gh release create '${{ steps.get_tag.outputs.new_tag }}' \ | |
--notes "${{ steps.get_tag.outputs.changelog }}" \ | |
--target "$(git rev-parse HEAD)" |