Skip to content

Add secrets

Add secrets #4

Workflow file for this run

name: 'Add secrets'
on:
workflow_dispatch:
permissions:
contents: read
jobs:
add_secrets:
name: 'Add secrets'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
- name: 'Set project'
run: gcloud config set project jasperg-dagster
- name: 'Install dependencies'
run: pip install -r requirements_scripts.txt
- name: 'Add secrets'
run: python scripts/add_secret.py from-prefix DAGSTER_SECRET
env:
DAGSTER_SECRET_SLACK_BOT_OAUTH_TOKEN: '${{ secrets.DAGSTER_SECRET_SLACK_BOT_OAUTH_TOKEN }}'