Safe Settings Sync #141
This file contains hidden or 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: | |
| schedule: | |
| - cron: "0 */4 * * *" | |
| workflow_dispatch: {} | |
| jobs: | |
| safeSettingsSync: | |
| runs-on: ubuntu-latest | |
| env: | |
| # Version/tag of github/safe-settings repo to use: | |
| SAFE_SETTINGS_VERSION: main-enterprise | |
| # 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: ${{ env.SAFE_SETTINGS_VERSION }} | |
| path: ${{ env.SAFE_SETTINGS_CODE_DIR }} | |
| - uses: actions/setup-node@v4 | |
| - run: npm install | |
| working-directory: ${{ env.SAFE_SETTINGS_CODE_DIR }} | |
| - run: npm run full-sync | |
| # - run: npm run | |
| working-directory: ${{ env.SAFE_SETTINGS_CODE_DIR }} | |
| env: | |
| GH_ORG: ${{ vars.SAFE_SETTINGS_GH_ORG }} | |
| APP_ID: ${{ vars.SAFE_SETTINGS_APP_ID }} | |
| PRIVATE_KEY: ${{ secrets.SAFE_SETTINGS_PRIVATE_KEY }} | |
| ADMIN_REPO: .github | |
| CONFIG_PATH: safe-settings | |
| SETTINGS_FILE_PATH: settings.yml |