Skip to content

Commit 5bd87f1

Browse files
committed
Convert to composite action format
1 parent ead719d commit 5bd87f1

File tree

2 files changed

+17
-27
lines changed

2 files changed

+17
-27
lines changed

.github/composite/docs/Dockerfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/composite/docs/action.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,23 @@ outputs:
4343
created:
4444
description: 'Whether the pull request was created'
4545
runs:
46-
using: 'docker'
47-
image: 'Dockerfile'
48-
args:
49-
- ${{ inputs.source-path }}
50-
- ${{ inputs.destination-repo }}
51-
- ${{ inputs.destination-path }}
52-
- ${{ inputs.user-email }}
53-
- ${{ inputs.user-name }}
54-
- ${{ inputs.destination-head-branch }}
55-
- ${{ inputs.destination-base-branch }}
56-
- ${{ inputs.pull-request-reviewers }}
57-
- ${{ inputs.title }}
58-
- ${{ inputs.body }}
59-
- ${{ inputs.label }}
46+
using: 'composite'
47+
steps:
48+
- name: Run copy and create PR
49+
shell: bash
50+
env:
51+
INPUT_SOURCE_PATH: ${{ inputs.source_path }}
52+
INPUT_DESTINATION_REPO: ${{ inputs.destination_repo }}
53+
INPUT_DESTINATION_PATH: ${{ inputs.destination_path }}
54+
INPUT_USER_EMAIL: ${{ inputs.user_email }}
55+
INPUT_USER_NAME: ${{ inputs.user_name }}
56+
INPUT_DESTINATION_HEAD_BRANCH: ${{ inputs.destination_head_branch }}
57+
INPUT_DESTINATION_BASE_BRANCH: ${{ inputs.destination_base_branch }}
58+
INPUT_PULL_REQUEST_REVIEWERS: ${{ inputs.pull_request_reviewers }}
59+
INPUT_TITLE: ${{ inputs.title }}
60+
INPUT_BODY: ${{ inputs.body }}
61+
INPUT_LABEL: ${{ inputs.label }}
62+
run: ${{ github.action_path }}/entrypoint.sh
6063
branding:
6164
icon: 'git-commit'
6265
color: 'green'

0 commit comments

Comments
 (0)