mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 13:56:44 +00:00
Enhance repository name extraction in action.yml to support multiple repositories, improving output clarity and functionality during execution.
Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
71182239cc
commit
9d1f771660
14
action.yml
14
action.yml
@ -4,13 +4,15 @@ author: "Alastair Mooney"
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Extract repository name
|
||||
- name: Extract repository names
|
||||
if: ${{ inputs.TARGET_REPO != '' && inputs.APP_ID != '' }}
|
||||
id: extract-repo
|
||||
id: extract-repos
|
||||
run: |
|
||||
REPO_NAME=$(echo "${{ inputs.TARGET_REPO }}" | cut -d'/' -f2)
|
||||
echo "repo-name=$REPO_NAME"
|
||||
echo "repo-name=$REPO_NAME" >> $GITHUB_OUTPUT
|
||||
SOURCE_REPO_NAME=$(echo "${{ inputs.REPO }}" | cut -d'/' -f2)
|
||||
TARGET_REPO_NAME=$(echo "${{ inputs.TARGET_REPO }}" | cut -d'/' -f2)
|
||||
echo "source-repo-name=$SOURCE_REPO_NAME" >> $GITHUB_OUTPUT
|
||||
echo "target-repo-name=$TARGET_REPO_NAME" >> $GITHUB_OUTPUT
|
||||
echo "repositories=$SOURCE_REPO_NAME,$TARGET_REPO_NAME" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
- name: Generate token for private repository access
|
||||
@ -21,7 +23,7 @@ runs:
|
||||
app-id: ${{ inputs.APP_ID }}
|
||||
private-key: ${{ inputs.PRIVATE_KEY }}
|
||||
owner: ${{ inputs.OWNER }}
|
||||
repositories: ${{ steps.extract-repo.outputs.repo-name }}
|
||||
repositories: ${{ steps.extract-repos.outputs.repositories }}
|
||||
|
||||
- name: Run TODO to Issue action
|
||||
uses: docker://reg.dev.krd/test-todo-to-issue/todo-to-issue-action:test
|
||||
|
||||
Loading…
Reference in New Issue
Block a user