fix: Fix publish permissions for retries (#29342)

Этот коммит содержится в:
Antonis Stamatiou
2024-11-20 13:22:23 +02:00
коммит произвёл GitHub
родитель 1a095f74c2
Коммит 297aab56a0
2 изменённых файлов: 7 добавлений и 3 удалений

7
.github/workflows/server-ci-template.yml поставляемый
Просмотреть файл

@@ -263,36 +263,37 @@ jobs:
name: Postgres with binary parameters
needs: check-mattermost-vet
uses: ./.github/workflows/server-test-template.yml
secrets: inherit
with:
name: Postgres with binary parameters
datasource: postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable&connect_timeout=10&binary_parameters=yes
drivername: postgres
logsartifact: postgres-binary-server-test-logs
secrets: inherit
test-postgres-normal:
name: Postgres
needs: check-mattermost-vet
uses: ./.github/workflows/server-test-template.yml
secrets: inherit
with:
name: Postgres
datasource: postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable&connect_timeout=10
drivername: postgres
logsartifact: postgres-server-test-logs
secrets: inherit
test-mysql:
name: MySQL
needs: check-mattermost-vet
uses: ./.github/workflows/server-test-template.yml
secrets: inherit
with:
name: MySQL
datasource: mmuser:mostest@tcp(mysql:3306)/mattermost_test?charset=utf8mb4&multiStatements=true&maxAllowedPacket=4194304
drivername: mysql
logsartifact: mysql-server-test-logs
secrets: inherit
test-mmctl:
name: Run mmctl tests
needs: check-mattermost-vet
uses: ./.github/workflows/mmctl-test-template.yml
secrets: inherit
with:
name: mmctl
datasource: postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable&connect_timeout=10

3
.github/workflows/server-test-template.yml поставляемый
Просмотреть файл

@@ -19,6 +19,9 @@ jobs:
test:
name: ${{ inputs.name }}
runs-on: ubuntu-22.04
permissions:
pull-requests: write
checks: write
env:
COMPOSE_PROJECT_NAME: ghactions
steps: