Copy Unraid Community Applications template(s) to templates repository #22
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: Copy Unraid Community Applications template(s) to templates repository | |
on: | |
workflow_run: | |
workflows: ["Create Release"] | |
types: | |
- completed | |
release: | |
types: [created] | |
workflow_dispatch: ~ | |
jobs: | |
copy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Establish variables | |
id: vars | |
run: | | |
VERSION=${{ github.event.inputs.version || github.ref_name }} | |
echo ::set-output name=version::${VERSION} | |
echo ::set-output name=today::$(date +'%Y-%m-%d') | |
- name: Open PR with template changes to unraid_templates | |
uses: nwithan8/[email protected] | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.PR_OPEN_GITHUB_TOKEN }} | |
with: | |
# Will mirror folder structure (copying "templates" folder to "templates" folder in destination repo) | |
source_folder: 'templates' | |
destination_repo: 'mtrogman/unraid_templates' | |
destination_base_branch: 'main' | |
destination_head_branch: grabarr-${{ steps.vars.outputs.version }} | |
user_email: '[email protected]' | |
user_name: 'mtrogman' | |
pull_request_assignees: 'mtrogman' |