Commit release pr action #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Commit release pr action | |
on: | |
workflow_dispatch: | |
inputs: | |
repo_name: | |
description: | | |
Specify name of the repository to commit the file to. | |
required: true | |
permissions: | |
contents: write | |
jobs: | |
copy_action_file: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Push GHA file to ${{ github.event.inputs.repo_name }} | |
uses: nkoppel/[email protected] | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.REPO_ADMIN_TOKEN_MH }} | |
with: | |
source-files: .github/workflows/ReleasePr.yml .github/workflows/release.yml .github/release-drafter.yml | |
destination-username: Ordermentum | |
destination-repository: ${{ github.event.inputs.repo_name }} | |
destination-branch: develop | |
destination-directory: .github/workflows | |
commit-email: ${{ github.actor }}@users.noreply.github.com | |
commit-username: ${{ github.actor }} | |
commit-message: "Add release GHAs" |