Add secrets #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' |