can't export playlists, can't drag'n'drop to iTunes #118
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: Softfix workflow | |
on: | |
issue_comment: | |
types: [created] | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
softfix: | |
name: Softfix action | |
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/softfix') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if commenter is maintainer | |
id: check-maintainer | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const response = await github.rest.repos.getCollaboratorPermissionLevel({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
username: context.payload.comment.user.login | |
}); | |
const isMaintainer = ['admin', 'write'].includes(response.data.permission); | |
return isMaintainer; | |
- name: Checkout repository | |
if: steps.check-maintainer.outputs.result == 'true' | |
uses: actions/checkout@v4 | |
- name: Softfix | |
if: steps.check-maintainer.outputs.result == 'true' | |
uses: daschuer/softfix@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |