mirror of
https://git.madhouse-project.org/actions/nix-flake-update-pr.git
synced 2024-11-30 15:19:14 +01:00
130d7bfc05
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
# SPDX-FileCopyrightText: 2024 Gergely Nagy
|
|
# SPDX-FileContributor: Gergely Nagy
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
---
|
|
name: nix-flake-update-pr
|
|
author: Gergely Nagy
|
|
description: "nix flake update => pull request"
|
|
inputs:
|
|
token:
|
|
description: "The token to use for the push."
|
|
required: true
|
|
author-name:
|
|
description: "Display name of the commit author."
|
|
default: '${{ github.actor }}'
|
|
required: true
|
|
author-email:
|
|
description: "Email of the commit author."
|
|
default: '${{ github.actor_id }}+${{ github.actor }}@example.com'
|
|
required: true
|
|
branch:
|
|
description: "The branch to push the PR to."
|
|
default: "nix-flake-update/patch"
|
|
required: true
|
|
target-branch:
|
|
description: "The branch to target with the PR."
|
|
default: "main"
|
|
required: true
|
|
outputs:
|
|
pull-request-number:
|
|
description: "The pull request number"
|
|
value: "${{ steps.create-agit-pull-request.outputs.pull-request-number }}"
|
|
pull-request-url:
|
|
description: "The URL of the pull request"
|
|
value: "${{ steps.create-agit-pull-request.outputs.pull-request-url }}"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- id: nix-flake-update-pr
|
|
shell: bash
|
|
run: ${GITHUB_ACTION_PATH}/bin/nix-flake-update-pr
|
|
env:
|
|
INPUT_TOKEN: ${{ inputs.token }}
|
|
INPUT_AUTHOR_NAME: ${{ inputs.author-name }}
|
|
INPUT_AUTHOR_EMAIL: ${{ inputs.author-email }}
|
|
INPUT_BRANCH: ${{ inputs.branch }}
|
|
INPUT_TARGET_BRANCH: ${{ inputs.target-branch }}
|