Skip to content

Commit

Permalink
Merge pull request #15 from hilmarf/safe-settings
Browse files Browse the repository at this point in the history
Safe settings
  • Loading branch information
hilmarf authored Feb 24, 2025
2 parents 6005cd1 + 93697f2 commit bdebd42
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/safe-settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Safe Settings Sync
on:
workflow_dispatch: {}

jobs:
safeSettingsSync:
runs-on: ubuntu-latest
env:
# Version/tag of github/safe-settings repo to use:
SAFE_SETTINGS_VERSION: 2.1.16

# Path on GHA runner box where safe-settings code downloaded to:
SAFE_SETTINGS_CODE_DIR: ${{ github.workspace }}/.safe-settings-code
steps:
# Self-checkout of 'admin' repo for access to safe-settings config:
- uses: actions/checkout@v4

# Checkout of safe-settings repo for running full sync:
- uses: actions/checkout@v4
with:
repository: github/safe-settings
ref: $SAFE_SETTINGS_VERSION
path: $SAFE_SETTINGS_CODE_DIR

# setup node
- uses: actions/setup-node@v4
- run: npm install
working-directory: $SAFE_SETTINGS_CODE_DIR

# run full-sync
- run: npm run full-sync
working-directory: $SAFE_SETTINGS_CODE_DIR
env:
GH_ORG: hilmarf
APP_ID: ${{ secrets.OCMBOT_APP_ID }}
PRIVATE_KEY: ${{ secrets.OCMBOT_PRIV_KEY }}
GITHUB_CLIENT_ID: ${{ secrets.OCMBOT_CLIENT_ID }}
GITHUB_CLIENT_SECRET: ${{ secrets.OCMBOT_CLIENT_SECRET }}
ADMIN_REPO: .github
CONFIG_PATH: safe-settings
DEPLOYMENT_CONFIG_FILE: ${{ github.workspace }}/safe-settings/deployment-settings.yml

0 comments on commit bdebd42

Please sign in to comment.