Skip to content

Commit

Permalink
CU
Browse files Browse the repository at this point in the history
  • Loading branch information
vvasuki committed Sep 23, 2023
1 parent 4878e96 commit 1106e36
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@ jobs:
- name: Get changed files
id: changed-files
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: jitterbit/get-changed-files@v1
uses: rlespinasse/github-slug-action@v4
- id: filter_changed_files
if: ${{ steps.changed-files.conclusion == 'success'}}
uses: actions/[email protected]
with:
script: |
var changed_files = '${{steps.changed-files.outputs.all}}'.replace(/(?<= |^)content(?= |$)/, "").replace(/(?<= |^)static(?= |$)/, "").trim()
var changed_files = '${{steps.changed-files.outputs.all_changed_files}}'.replace(/(?<= |^)content(?= |$)/, "").replace(/(?<= |^)static(?= |$)/, "").trim()
console.log(changed_files, changed_files.length)
core.setOutput('count', changed_files.length.toString())
- name: Update submodules
id: update_submods
if: ${{ steps.changed-files.conclusion == 'skipped' || (!contains(steps.changed-files.outputs.all, 'content'))}}
if: ${{ steps.changed-files.conclusion == 'skipped' || (!contains(steps.changed-files.outputs.all_changed_files, 'content'))}}
run: |
set -o xtrace
echo "=====${{ steps.changed-files.outputs.all}}======"
echo "=====${{ steps.changed-files.outputs.all}}======"
echo "=====${{ steps.changed-files.outputs.all_changed_files}}======"
echo "=====${{ steps.changed-files.outputs.all_changed_files}}======"
git submodule update --init --recursive
git submodule update --remote --merge --recursive
- name: Setup Hugo
Expand Down

0 comments on commit 1106e36

Please sign in to comment.