Skip to content

Commit 3e81580

Browse files
authored
Merge pull request #21 from Songmu/change-interface
[incompatible] change argument name to token from github-token
2 parents d94e49f + 26986bf commit 3e81580

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Latest version: v2.0.2
2020
- name: Push to another repository
2121
uses: Songmu/action-push-to-another-repository@v2
2222
with:
23-
github-token: ${{ secrets.GITHUB_TOKEN }}
23+
token: ${{ secrets.GITHUB_TOKEN }}
2424
destination-repository: 'owner/repo'
2525
```
2626
2727
## Inputs
2828
2929
| Name | Description | Required | Default |
3030
|------|-------------|----------|---------|
31-
| `github-token` | GitHub token with write access to the destination repository | Yes | - |
31+
| `token` | GitHub token with write access to the destination repository | Yes | - |
3232
| `destination-repository` | Destination repository (format: `owner/repo`) | Yes | - |
3333
| `source-directory` | Source directory from the origin directory | No | `.` |
3434
| `destination-branch` | Destination branch name for the destination repository | No | `main` |
@@ -68,7 +68,7 @@ jobs:
6868
- name: Push to another repository
6969
uses: Songmu/action-push-to-another-repository@v2
7070
with:
71-
github-token: "${{ steps.generate_token.outputs.token }}"
71+
token: "${{ steps.generate_token.outputs.token }}"
7272
destination-repository: 'owner/dest-repo'
7373
```
7474

@@ -92,7 +92,7 @@ jobs:
9292
- name: Push to another repository
9393
uses: Songmu/action-push-to-another-repository@v2
9494
with:
95-
github-token: "${{ secrets.GITHUB_TOKEN }}"
95+
token: "${{ secrets.GITHUB_TOKEN }}"
9696
destination-repository: '$you/$yourepo'
9797
source-directory: './src'
9898
destination-directory: 'vendor/another-repo'

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >-
33
Push files to another repository. Ideal for GitHub Pages, docs sync, and
44
mirrors. Creates signed commits with App tokens.
55
inputs:
6-
github-token:
6+
token:
77
description: Github token with write access to the destination repository
88
required: true
99
destination-repository:
@@ -38,7 +38,7 @@ runs:
3838
uses: actions/checkout@v4
3939
with:
4040
repository: ${{ inputs.destination-repository }}
41-
token: ${{ inputs.github-token }}
41+
token: ${{ inputs.token }}
4242
ref: ${{ inputs.destination-branch }}
4343
path: .push-to-another-repository
4444
- id: prepare
@@ -51,7 +51,7 @@ runs:
5151
WORKTREE_DIR: .push-to-another-repository
5252
- uses: suzuki-shunsuke/commit-action@v0.0.8
5353
with:
54-
github_token: ${{ inputs.github-token }}
54+
github_token: ${{ inputs.token }}
5555
repository: ${{ inputs.destination-repository }}
5656
commit_message: ${{ steps.prepare.outputs.commit-message }}
5757
branch: ${{ inputs.destination-branch }}

0 commit comments

Comments
 (0)