on:
  push:
    branches:
      - 'build-*'
    tags: '*'
    schedule:
      - cron: '15 1 * * *'

jobs:
  build:
    if: github.repository == 'hashicorp/vagrant-builders'
    name: Build Vagrant Installers
    runs-on: self-hosted
    steps:
      - name: Code Checkout
        uses: actions/checkout@v1
      - name: Build and Release
        run: ./.ci/build-packages.sh
        env:
          PKT_SECRET_PHRASE: ${{ secrets.ASSETS_PASSWORD }}
          PKT_SignKeyPassword: ${{ secrets.WINDOWS_SIGN_PASSWORD }}
          PKT_VAGRANT_INSTALLER_SignKeyPassword: ${{ secrets.WINDOWS_SIGN_PASSWORD }}
          PKT_VAGRANT_INSTALLER_CODE_SIGN_PASS: ${{ secrets.MACOS_SIGN_PASSWORD }}
          PKT_VAGRANT_INSTALLER_NOTARIZE_USERNAME: releases@hashicorp.com
          PKT_VAGRANT_INSTALLER_NOTARIZE_PASSWORD: ${{ secrets.MACOS_NOTARIZE_PASSWORD }}
        working-directory: ${{github.workspace}}
      - name: Clean Workspace
        if: always()
        run: rm -rf ${{ github.workspace }}

on:
  push:
    branches:
      - 'build-*'
    tags: '*'
  schedule:
    - cron: '15 1 * * *'

jobs:
  build:
    if: github.repository == 'hashicorp/vagrant-builders'
    name: Build Vagrant Installers
    runs-on: self-hosted
    steps:
      - name: Code Checkout
        uses: actions/checkout@v1
      - name: Build and Release
        run: ./.ci/build-packages.sh
        env:
          PKT_SECRET_PHRASE: ${{ secrets.ASSETS_PASSWORD }}
          PKT_SignKeyPassword: ${{ secrets.WINDOWS_SIGN_PASSWORD }}
          PKT_VAGRANT_INSTALLER_SignKeyPassword: ${{ secrets.WINDOWS_SIGN_PASSWORD }}
          PKT_VAGRANT_INSTALLER_CODE_SIGN_PASS: ${{ secrets.MACOS_SIGN_PASSWORD }}
          PKT_VAGRANT_INSTALLER_NOTARIZE_USERNAME: releases@hashicorp.com
          PKT_VAGRANT_INSTALLER_NOTARIZE_PASSWORD: ${{ secrets.MACOS_NOTARIZE_PASSWORD }}
        working-directory: ${{github.workspace}}
      - name: Clean Workspace
        if: always()
        run: rm -rf ${{ github.workspace }}

Fix indentation depth on schedule
Fix indentation depth on schedule
