---
name: release-please

on:
  workflow_dispatch:
  push:
    branches:
    - main

permissions:
  pull-requests: write
  contents: write
  packages: write

jobs:
  release-please:
    runs-on: ubuntu-latest
    steps:
    - name: Get GitHub token
      uses: actions/create-github-app-token@v1
      id: get_token
      with:
        app-id: ${{ secrets.HOSTINGERBOT_APP_ID }}
        private-key: ${{ secrets.HOSTINGERBOT_PRIVATE_KEY }}
        owner: ${{ github.repository_owner }}
        repositories: |
          fireactions

    - name: Run release-please
      uses: googleapis/release-please-action@v4
      with:
        token: ${{ steps.get_token.outputs.token }}
