Skip to content

Manage PR

Manage PR #117

Workflow file for this run

name: Manage PR
on:
pull_request:
branches:
- main
- release
pull_request_review:
types:
- submitted
- edited
jobs:
lint-and-test:
name: Lint Files and Run Tests
uses: dot-base/.github/.github/workflows/lint-and-test.yml@main
get-pr:
name: Get PR
needs: lint-and-test
uses: dot-base/.github/.github/workflows/get-pr.yml@main
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
lint-pr-title:
name: Lint PR Title
needs: get-pr
uses: dot-base/.github/.github/workflows/lint-pr-title.yml@main
with:
pr: ${{ needs.get-pr.outputs.pr }}
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
# Run the following steps if the pull request is a release PR
merge-release-pr:
name: Merge Release PR
needs: [get-pr, lint-pr-title]
if: ${{ fromJson(needs.get-pr.outputs.pr).type == 'release' && fromJson(needs.get-pr.outputs.pr).isMergeable == true }}
uses: dot-base/.github/.github/workflows/merge-release-pr.yml@main

Check failure on line 41 in .github/workflows/manage-pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/manage-pr.yml

Invalid workflow file

error parsing called workflow ".github/workflows/manage-pr.yml" -> "dot-base/.github/.github/workflows/merge-release-pr.yml@main" (source branch with sha:888ade43c312d3a33bd1d4d955bdd33825571b8c) : invalid value workflow reference: references to workflows must be prefixed with format 'owner/repository/' or './' for local workflows
with:
pr: ${{ needs.get-pr.outputs.pr }}
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
create-release:
name: Create Release
needs: merge-release-pr
uses: dot-base/.github/.github/workflows/create-release.yml@main
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
CR_PAT: ${{ secrets.CR_PAT }}
# Run the following steps if the pull request is a feature PR
configure-feature-pr:
name: Configure Feature PR
needs: [get-pr, lint-pr-title]
if: ${{ fromJson(needs.get-pr.outputs.pr).type == 'feature' }}
uses: dot-base/.github/.github/workflows/configure-feature-pr.yml@main
with:
pr: ${{ needs.get-pr.outputs.pr }}
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}