This repository contains my personal GitHub configuration for use in my personal projects. It is not meant to be used anywhere else. I won't provide support and don't accept pull requests for this repo.
This action checks if any open pull request exists with the current branch as head ref.
actions/github/check-pr/action.yml
jobs:
check-pr:
runs-on: ubuntu-latest
outputs:
pr-exists: ${{ steps.check.outputs.pr-exists }}
steps:
- name: Check if PR exists
id: check
uses: eliashaeussler/.github/actions/github/check-pr@1.1.0
Name | Required | Description | Default value |
---|---|---|---|
repository |
✅ | GitHub repository to check for an open PR | ${{ github.repository }} |
branch |
✅ | Branch name to check for an open PR | ${{ github.ref_name }} |
token |
✅ | GitHub token used for authentication | ${{ github.token }} |
Name | Description |
---|---|
pr-exists |
Flag to indicate whether an open PR exists |
pr-url |
URL to an open PR if any exists |
This action triggers a specific GitHub workflow that supports the
workflow_dispatch
event.
actions/github/trigger-workflow/action.yml
jobs:
trigger-cgl:
runs-on: ubuntu-latest
steps:
- name: Trigger CGL workflow
uses: eliashaeussler/.github/actions/github/trigger-workflow@1.1.0
with:
workflow: cgl.yaml
Name | Required | Description | Default value |
---|---|---|---|
repository |
✅ | Hub repository of the workflow to trigger | ${{ github.repository }} |
workflow |
✅ | Name, ID or file name of the workflow to trigger | – |
branch |
✅ | Branch for which to trigger the workflow | ${{ github.ref_name }} |
inputs |
– | Optional inputs to pass to the workflow (JSON-encoded string) | {} |
token |
✅ | GitHub token used for authentication | ${{ github.token }} |
None
This project is licensed under GNU General Public License 3.0 (or later).