Skip to content

Commit 86ae49b

Browse files
committed
Fixing.. the previous fix for github actions on master branch.
1 parent 8df5694 commit 86ae49b

File tree

7 files changed

+23
-17
lines changed

7 files changed

+23
-17
lines changed

.github/workflows/build_aux_files.yml

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

1818
permissions:
1919
contents: write
20-
actions: write
20+
actions: read
2121

2222
runs-on: ubuntu-latest
2323
steps:

.github/workflows/build_linux_x86.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-24.04
2727
permissions:
2828
contents: read
29-
actions: write
29+
actions: read
3030

3131
steps:
3232
- name: Checkout repository
@@ -145,6 +145,7 @@ jobs:
145145
name: Build-linux-x86
146146
merge-multiple: true
147147
run-id: ${{ github.run_id }}
148+
148149
- name: Create release
149150
uses: softprops/action-gh-release@v2
150151
env:
@@ -160,8 +161,8 @@ jobs:
160161
needs: linux-x86
161162
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
162163
permissions:
163-
contents: read
164-
actions: write
164+
contents: write
165+
actions: read
165166

166167
runs-on: ubuntu-latest
167168
steps:

.github/workflows/build_linux_x86_64.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-24.04
2424
permissions:
2525
contents: read
26-
actions: write
26+
actions: read
2727

2828
steps:
2929
- name: Checkout repository
@@ -100,6 +100,7 @@ jobs:
100100
name: Build-linux-x86_64
101101
merge-multiple: true
102102
run-id: ${{ github.run_id }}
103+
103104
- name: Create release
104105
uses: softprops/action-gh-release@v2
105106
env:
@@ -114,8 +115,8 @@ jobs:
114115
needs: linux-x86_64
115116
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
116117
permissions:
117-
contents: read
118-
actions: write
118+
contents: write
119+
actions: read
119120

120121
runs-on: ubuntu-latest
121122
steps:

.github/workflows/build_osx_arm.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: macos-15 # apple silicon
2424
permissions:
2525
contents: read
26-
actions: write
26+
actions: read
2727

2828
env:
2929
CMAKE_GEN: Ninja
@@ -90,6 +90,7 @@ jobs:
9090
name: Build-osx-arm64
9191
merge-multiple: true
9292
run-id: ${{ github.run_id }}
93+
9394
- name: Create release
9495
uses: softprops/action-gh-release@v2
9596
env:
@@ -105,8 +106,8 @@ jobs:
105106
needs: macos-arm64
106107
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
107108
permissions:
108-
contents: read
109-
actions: write
109+
contents: write
110+
actions: read
110111

111112
runs-on: ubuntu-latest
112113
steps:

.github/workflows/build_osx_x86_64.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: macos-15-intel
2424
permissions:
2525
contents: read
26-
actions: write
26+
actions: read
2727

2828
env:
2929
CMAKE_GEN: Ninja
@@ -103,6 +103,9 @@ jobs:
103103
upload_selfhost_release:
104104
needs: macos-x86_64
105105
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
106+
permissions:
107+
contents: write
108+
actions: read
106109

107110
runs-on: ubuntu-latest
108111
steps:

.github/workflows/build_win_x86.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
permissions:
2626
contents: read
27-
actions: write
27+
actions: read
2828

2929
steps:
3030
- name: Checkout repository
@@ -85,8 +85,8 @@ jobs:
8585
needs: windows-x86
8686
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
8787
permissions:
88-
contents: read
89-
actions: write
88+
contents: write
89+
actions: read
9090

9191
runs-on: ubuntu-latest
9292
steps:

.github/workflows/build_win_x86_64.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: windows-latest
2424
permissions:
2525
contents: read
26-
actions: write
26+
actions: read
2727

2828
steps:
2929
- name: Checkout repository
@@ -84,8 +84,8 @@ jobs:
8484
needs: windows-x86_64
8585
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
8686
permissions:
87-
contents: read
88-
actions: write
87+
contents: write
88+
actions: read
8989

9090
runs-on: ubuntu-latest
9191
steps:

0 commit comments

Comments
 (0)