Skip to content

Commit 90a7929

Browse files
authored
Merge pull request #2258 from nextcloud/ci/noid/update-actions-31
[stable31] ci: Update actions
2 parents d2a9a07 + b3ff699 commit 90a7929

15 files changed

+33
-8
lines changed

.github/workflows/block-merge-eol.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Set server major version environment
30-
uses: actions/github-script@v7
30+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
3131
with:
3232
github-token: ${{secrets.GITHUB_TOKEN}}
3333
script: |

.github/workflows/block-merge-freeze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
- name: Register server reference to fallback to master branch
32-
uses: actions/github-script@v7
32+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
3333
with:
3434
github-token: ${{secrets.GITHUB_TOKEN}}
3535
script: |

.github/workflows/command-compile.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
issue_comment:
1212
types: [created]
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
init:
1619
runs-on: ubuntu-latest

.github/workflows/dependabot-approve-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ concurrency:
2424

2525
jobs:
2626
auto-approve-merge:
27-
if: github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]'
27+
if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'renovate[bot]'
2828
runs-on: ubuntu-latest-low
2929
permissions:
3030
# for hmarr/auto-approve-action to approve PRs

.github/workflows/npm-audit-fix.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ on:
1414
# At 2:30 on Sundays
1515
- cron: '30 2 * * 0'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build:
1922
runs-on: ubuntu-latest
2023

2124
strategy:
2225
fail-fast: false
2326
matrix:
24-
branches: ['main', 'master', 'stable30', 'stable29', 'stable28']
27+
branches: ['main', 'master', 'stable31', 'stable30', 'stable29']
2528

2629
name: npm-audit-fix-${{ matrix.branches }}
2730

.github/workflows/performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ jobs:
175175
path: query.log
176176

177177
- name: Query count
178-
uses: actions/github-script@v5
178+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
179179
with:
180180
github-token: ${{secrets.GITHUB_TOKEN}}
181181
script: |

.github/workflows/phpunit-mysql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383

8484
steps:
8585
- name: Set app env
86+
if: ${{ env.APP_NAME == '' }}
8687
run: |
8788
# Split and keep last
8889
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV

.github/workflows/phpunit-oci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
9797
steps:
9898
- name: Set app env
99+
if: ${{ env.APP_NAME == '' }}
99100
run: |
100101
# Split and keep last
101102
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV

.github/workflows/phpunit-pgsql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686

8787
steps:
8888
- name: Set app env
89+
if: ${{ env.APP_NAME == '' }}
8990
run: |
9091
# Split and keep last
9192
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV

.github/workflows/phpunit-sqlite.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575

7676
steps:
7777
- name: Set app env
78+
if: ${{ env.APP_NAME == '' }}
7879
run: |
7980
# Split and keep last
8081
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)