Skip to content

Missing pull-request-number output #104

@Gerg-L

Description

@Gerg-L

Upon updating from v20 to v21 the outputs.pull-request-number is missing

to reproduce

name: flake-update
on:
  workflow_dispatch: 
  schedule:
    - cron: '0 5 * * *' 

jobs:
  lockfile:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4.1.5
      - name: Install Nix
        uses: DeterminateSystems/nix-installer-action@v11
      - name: update
        uses: DeterminateSystems/update-flake-lock@v21
        with:
          pr-title: "Update flake.lock" 
      - name: merge
        run: |
          gh pr merge ${{ steps.update.outputs.pull-request-number }} --squash --delete-branch
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

${{ steps.update.outputs.pull-request-number }} returns nothing

This same action worked with v20

Replacing ${{ steps.update.outputs.pull-request-number }} with $PULL_REQUEST_NUMBER works around this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions