From 78f4b629a9acfc31fa7e1bc92dd229c211927c59 Mon Sep 17 00:00:00 2001 From: RustyTake-Off <109174317+RustyTake-Off@users.noreply.github.com> Date: Sat, 29 Jun 2024 04:35:05 +0200 Subject: [PATCH] Update --- .../actions/templates/moveFiles/action.yaml | 3 ++- .github/workflows/move-files.yaml | 24 +++++++++---------- .github/workflows/templates/move-files.yaml | 17 ------------- 3 files changed, 14 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/templates/move-files.yaml diff --git a/.github/actions/templates/moveFiles/action.yaml b/.github/actions/templates/moveFiles/action.yaml index 7e3c028..62a3c1e 100644 --- a/.github/actions/templates/moveFiles/action.yaml +++ b/.github/actions/templates/moveFiles/action.yaml @@ -1,5 +1,5 @@ name: 'Move files' -description: 'Move files to a designated branch' +description: 'Move files to designated branch' inputs: branchName: @@ -15,3 +15,4 @@ runs: run: | ls -al git branch + echo ${{ inputs.branchName }} diff --git a/.github/workflows/move-files.yaml b/.github/workflows/move-files.yaml index 765d7cf..892bb06 100644 --- a/.github/workflows/move-files.yaml +++ b/.github/workflows/move-files.yaml @@ -9,8 +9,8 @@ on: - '!wslfiles/README.md' workflow_dispatch: -env: - branchName: 'wslfiles' +# env: +# branchName: 'wslfiles' jobs: move-files-to-branch: @@ -21,15 +21,15 @@ jobs: id: checkout-repo uses: actions/checkout@v4 - # - name: 'Move files' - # id: move-files - # uses: './templates/action.yaml' - # with: - # branchName: ${{ env.branchName }} - - name: 'Move files' id: move-files - shell: bash - run: | - pwd - ls -al + uses: './.github/actions/templates/moveFiles/action.yaml' + with: + branchName: 'wslfiles' + + # - name: 'Move files' + # id: move-files + # shell: bash + # run: | + # pwd + # ls -al diff --git a/.github/workflows/templates/move-files.yaml b/.github/workflows/templates/move-files.yaml deleted file mode 100644 index 7e3c028..0000000 --- a/.github/workflows/templates/move-files.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: 'Move files' -description: 'Move files to a designated branch' - -inputs: - branchName: - description: 'Branch name' - required: true - -runs: - using: 'composite' - steps: - - name: 'Move files to ${{ inputs.branchName }}' - id: move-files - shell: bash - run: | - ls -al - git branch