Update safe-settings.yaml #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: Safe Settings Sync | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- main | |
jobs: | |
safeSettingsSync: | |
runs-on: ubuntu-latest | |
env: | |
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: '2.1.16' | |
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: ocm | |
CONFIG_PATH: .github | |
DEPLOYMENT_CONFIG_FILE: ${{ github.workspace }}/.github/config/safe-settings.yaml |