Skip to content

Commit

Permalink
ci: Try to fix permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jim60105 committed Dec 10, 2023
1 parent 732c325 commit 6535fe7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/FetchLyrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,31 @@ jobs:
RETRY_FAILED_LYRICS: ${{ github.event.inputs.retry_failed_lyrics }}
MAX_COUNT: ${{ github.event.inputs.max_count }}
LYRICS: ${{ github.event.inputs.lyrics }}
run: 'chmod -R a+w Lyrics && docker run -v .:/output -v $PWD/appsettings.json:/app/appsettings.json ghcr.io/youtubeclipplaylist/lyrics'
run: |
chmod -R a+w Lyrics
chmod a+w Lyrics.json
chmod -R a+r Playlists
docker run -v .:/output -v $PWD/appsettings.json:/app/appsettings.json ghcr.io/youtubeclipplaylist/lyrics
- name: Execute Lyrics (repository_dispatch)
if: ${{ github.event_name == 'repository_dispatch' }}
env:
RETRY_FAILED_LYRICS: ${{ github.event.client_payload.retry_failed_lyrics }}
MAX_COUNT: ${{ github.event.client_payload.max_count }}
LYRICS: ${{ github.event.client_payload.lyrics }}
run: 'chmod -R a+w Lyrics && docker run -v .:/output -v $PWD/appsettings.json:/app/appsettings.json ghcr.io/youtubeclipplaylist/lyrics'
run: |
chmod -R a+w Lyrics
chmod a+w Lyrics.json
chmod -R a+r Playlists
docker run -v .:/output -v $PWD/appsettings.json:/app/appsettings.json ghcr.io/youtubeclipplaylist/lyrics
- name: Execute Lyrics (schedule, push)
if: ${{ github.event_name == 'schedule' || github.event_name == 'push' }}
run: 'chmod -R a+w Lyrics && docker run -v .:/output -v $PWD/appsettings.json:/app/appsettings.json ghcr.io/youtubeclipplaylist/lyrics'
run: |
chmod -R a+w Lyrics
chmod a+w Lyrics.json
chmod -R a+r Playlists
docker run -v .:/output -v $PWD/appsettings.json:/app/appsettings.json ghcr.io/youtubeclipplaylist/lyrics
- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down

0 comments on commit 6535fe7

Please sign in to comment.