Skip to content

Commit

Permalink
Update workflow to support additional develop package
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklul committed May 23, 2024
1 parent ddc8f48 commit 8f97552
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 128 deletions.
8 changes: 4 additions & 4 deletions .github/actions/index/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ runs:
- name: Pre tasks
shell: bash
run: |
[ -d "${{ inputs.path }}/.git" ] && mv "${{ inputs.path }}/.git" "${{ inputs.path }}/../.git.bak"
find "${{ inputs.path }}" -type f -name "index.html" -exec rm -f "{}" \;
[ -d "${{ inputs.path }}/.git" ] && mv -v "${{ inputs.path }}/.git" "${{ inputs.path }}/../.git.bak"
find "${{ inputs.path }}" -type f -name "index.html" -exec rm -fv "{}" \;
- name: Generate directory listings
uses: jayanta525/github-pages-directory-listing@v4.0.0
Expand All @@ -23,5 +23,5 @@ runs:
- name: Post tasks
shell: bash
run: |
find "${{ inputs.path }}" -type f -name "index.html" -exec sudo chown $(id -u):$(id -g) "{}" \;
[ -d ""${{ inputs.path }}/../.git.bak"" ] && mv "${{ inputs.path }}/../.git.bak" "${{ inputs.path }}/.git"
find "${{ inputs.path }}" -type f -name "index.html" -exec sudo chown -fv $(id -u):$(id -g) "{}" \;
[ -d "${{ inputs.path }}/../.git.bak" ] && mv -v "${{ inputs.path }}/../.git.bak" "${{ inputs.path }}/.git"
Loading

0 comments on commit 8f97552

Please sign in to comment.