1+ # This workflow is provided via the organization template repository
2+ #
3+ # https://github.com/nextcloud/.github
4+ # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+ #
6+ # SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
7+ # SPDX-License-Identifier: MIT
8+
19name : Compile Command
210on :
311 issue_comment :
2937 token : ${{ secrets.COMMAND_BOT_PAT }}
3038 repository : ${{ github.event.repository.full_name }}
3139 comment-id : ${{ github.event.comment.id }}
32- reactions : " +1 "
40+ reactions : ' +1 '
3341
3442 - name : Parse command
3543 uses : skjnldsv/parse-command-comment@5c955203c52424151e6d0e58fb9de8a9f6a605a1 # v2
@@ -61,19 +69,19 @@ jobs:
6169 key : git-repo
6270
6371 - name : Checkout ${{ needs.init.outputs.head_ref }}
64- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
72+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
6573 with :
6674 token : ${{ secrets.COMMAND_BOT_PAT }}
6775 fetch-depth : 0
6876 ref : ${{ needs.init.outputs.head_ref }}
6977
7078 - name : Setup git
7179 run : |
72- git config --local user.email " [email protected] " 73- git config --local user.name " nextcloud-command"
80+ git config --local user.email ' [email protected] ' 81+ git config --local user.name ' nextcloud-command'
7482
7583 - name : Read package.json node and npm engines version
76- uses : skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
84+ uses : skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
7785 id : package-engines-versions
7886 with :
7987 fallbackNode : ' ^20'
@@ -86,13 +94,13 @@ jobs:
8694 cache : npm
8795
8896 - name : Set up npm ${{ steps.package-engines-versions.outputs.npmVersion }}
89- run : npm i -g npm@" ${{ steps.package-engines-versions.outputs.npmVersion }}"
97+ run : npm i -g ' npm@${{ steps.package-engines-versions.outputs.npmVersion }}'
9098
9199 - name : Rebase to ${{ needs.init.outputs.base_ref }}
92100 if : ${{ contains(needs.init.outputs.arg1, 'rebase') }}
93101 run : |
94- git fetch origin ${{ needs.init.outputs.base_ref }}:${{ needs.init.outputs.base_ref }}
95- git rebase origin/${{ needs.init.outputs.base_ref }}
102+ git fetch origin ' ${{ needs.init.outputs.base_ref }}:${{ needs.init.outputs.base_ref }}'
103+ git rebase ' origin/${{ needs.init.outputs.base_ref }}'
96104
97105 - name : Install dependencies & build
98106 env :
@@ -105,30 +113,30 @@ jobs:
105113 - name : Commit default
106114 if : ${{ !contains(needs.init.outputs.arg1, 'fixup') && !contains(needs.init.outputs.arg1, 'amend') }}
107115 run : |
108- git add ${{ github.workspace }}${{ needs.init.outputs.git_path }}
116+ git add ' ${{ github.workspace }}${{ needs.init.outputs.git_path }}'
109117 git commit --signoff -m 'chore(assets): Recompile assets'
110118
111119 - name : Commit fixup
112120 if : ${{ contains(needs.init.outputs.arg1, 'fixup') }}
113121 run : |
114- git add ${{ github.workspace }}${{ needs.init.outputs.git_path }}
122+ git add ' ${{ github.workspace }}${{ needs.init.outputs.git_path }}'
115123 git commit --fixup=HEAD --signoff
116124
117125 - name : Commit amend
118126 if : ${{ contains(needs.init.outputs.arg1, 'amend') }}
119127 run : |
120- git add ${{ github.workspace }}${{ needs.init.outputs.git_path }}
128+ git add ' ${{ github.workspace }}${{ needs.init.outputs.git_path }}'
121129 git commit --amend --no-edit --signoff
122130 # Remove any [skip ci] from the amended commit
123131 git commit --amend -m "$(git log -1 --format='%B' | sed '/\[skip ci\]/d')"
124132
125133 - name : Push normally
126134 if : ${{ !contains(needs.init.outputs.arg1, 'rebase') && !contains(needs.init.outputs.arg1, 'amend') }}
127- run : git push origin ${{ needs.init.outputs.head_ref }}
135+ run : git push origin ' ${{ needs.init.outputs.head_ref }}'
128136
129137 - name : Force push
130138 if : ${{ contains(needs.init.outputs.arg1, 'rebase') || contains(needs.init.outputs.arg1, 'amend') }}
131- run : git push --force origin ${{ needs.init.outputs.head_ref }}
139+ run : git push --force origin ' ${{ needs.init.outputs.head_ref }}'
132140
133141 - name : Add reaction on failure
134142 uses : peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
@@ -137,4 +145,4 @@ jobs:
137145 token : ${{ secrets.COMMAND_BOT_PAT }}
138146 repository : ${{ github.event.repository.full_name }}
139147 comment-id : ${{ github.event.comment.id }}
140- reactions : " -1 "
148+ reactions : ' -1 '
0 commit comments