generated from dkoshkin/golang-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.5 KB
/
release-checks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 2023 Dimitri Koshkin. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: release-checks
on:
workflow_dispatch:
workflow_call:
jobs:
test-with-influxdb:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Run status-writer-action action locally
uses: ./.github/composite-actions/status-writer-released
if: always()
with:
# select the backend to use
backend: "influxdb"
# set InfluxDB details
influxdb_token: "${{ secrets.INFLUXDB_TOKEN }}"
influxdb_url: "${{ secrets.INFLUXDB_URL }}"
influxdb_org: "${{ secrets.INFLUXDB_ORG }}"
influxdb_bucket: "${{ secrets.INFLUXDB_BUCKET }}"
test-with-googlesheets:
runs-on: ubuntu-latest
env:
GOOGLE_APPLICATION_CREDENTIALS: client_secret.json
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Write Google Cloud credentials to file
uses: jsdaniell/[email protected]
with:
name: "${{ env.GOOGLE_APPLICATION_CREDENTIALS }}"
json: "${{ secrets.GOOGLE_CREDENTIALS }}"
- name: Run status-writer-action action locally
uses: ./.github/composite-actions/status-writer-released
if: always()
with:
# select the backend to use
backend: "googlesheets"
# set Google Sheets details
googlesheets_spreadsheet_id: "${{ secrets.GOOGLESHEETS_SPREADSHEET_ID }}"