jpoehnelt / secrets-sync-action

A Github Action that can sync secrets from one repository to many others.
https://github.com/marketplace/actions/secrets-sync-action
Apache License 2.0
314 stars 93 forks source link

if an environment does not exist, the action fails #65

Open bikotoru opened 2 years ago

bikotoru commented 2 years ago

If I try to get this action to run, and one of the repositories doesn't have the enviroments created, instead of creating the enviroments

image
ignacio-valencia commented 2 years ago

@bikotoru

utiliza la version 1.7.0

guiate por este archivo google/secrets-sync-action/action.yml

 job-sync-dev:
    name: Syncing secrets
    runs-on: ubuntu-latest
    environment: env_dev
    steps:
      - uses: google/secrets-sync-action@v1.7.0
        with:
          dry_run: false
          secrets: |
            VAR_SECRET_THIS_REPO_RUN
            VAR2_SECRET_THIS_REPO_RUN
          repositories: |
            org/destination-repo
          environment: destination_env
          github_token: ${{ secrets.GITHUB_TOKEN }}
          repositories_list_regex: false
        env:
          VAR_SECRET_THIS_REPO_RUN: ${{secrets.VAR_SECRET_THIS_REPO_RUN}}
          VAR2_SECRET_THIS_REPO_RUN: ${{secrets.VAR2_SECRET_THIS_REPO_RUN}}