name: Update Tempest Subtree on: # Runs every day schedule: - cron: '0 0 * * *' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: jobs: update: runs-on: self-hosted steps: - name: Chown user run: | sudo chown -R $USER:$USER $GITHUB_WORKSPACE - name: Checkout uses: actions/checkout@v3 with: # Checkout sync_tempest ref: 'sync_tempest' # Fetches all history for all branches and tags. fetch-depth: 0 - name: Update & Push Tempest subtree # Run Tempest subtree updates pull & push update run: | git init git subtree pull --prefix=tempest/ https://github.com/openstack/tempest master git config user.name "GitHub Action" git config user.email "action@github.com" git push origin HEAD:sync_tempest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}