Run Workflow Button not Showing Up

I’ve been trying to get this workflow to work:

name: Generate Changelog
on:
  push:
    tags:
      - "v[0-9]*.[0-9]*.[0-9]*"
  workflow_dispatch:
    inputs:
      version:
        description: "Version tag (e.g., v1.2.3)"
        required: true

jobs:
  changelog:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Install Bun
        uses: oven-sh/setup-bun@v1
        with:
          bun-version: latest

      - name: Install auto-changelog
        run: bun add -g auto-changelog

      - name: Generate Changelog
        run: auto-changelog

      - name: Set TAG_VERSION
        id: set_version
        run: |
          if [ "${{ gitea.event_name }}" = "workflow_dispatch" ]; then
            VERSION="${{ gitea.inputs.version }}"
          else
            VERSION="${{ gitea.ref_name }}"
          fi
          echo "TAG_VERSION=$VERSION" >> $GITHUB_ENV

      - name: Commit and Push
        env:
          GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
          TARGET_BRANCH: "main"
        run: |
          git checkout -b chore/update-changelog-${{ env.TAG_VERSION }}

          git config user.name "gitea-actions"
          git config user.email "actions@gitea.com"

          if git diff --quiet -- CHANGELOG.md; then
            echo "No changes to CHANGELOG.md"
          else
            git add CHANGELOG.md
            git commit -m "chore(docs): update changelog for ${{ env.TAG_VERSION }}"

            git push "https://${{ gitea.actor }}:$GITEA_TOKEN@${{ gitea.server_url }}/${{ gitea.repository }}.git" HEAD:$TARGET_BRANCH
          fi

For some reason, the “Run Workflow” button isn’t showing up on my actions page.

I can’t reproduce it. Can you reproduce it on demo.gitea.com?

Oh, my instance was on 1.22.4, so I just updated to 1.24.0 and there appears to have been some bug fix/change between those two versions that fixed this for me.

1 Like