Skip to content

Nightly-Build

Nightly-Build #656

Workflow file for this run

name: Nightly-Build
on:
schedule:
- cron: '0 0 * * *'
## This Action will run every day at 12:00 AM UTC and keep Nightly-Build up to date with the latest changes in the repository.
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v2
with:
ref: dev
fetch-depth: 0
token: ${{ secrets.PIPELINE_ADMIN }}
- name: Force Update Nightly Build Branch with Dev
id: createBranch
run: |
set -e
git config --local user.email "[email protected]"
git config --local user.name "Azure Functions"
date > build-time.txt
git add build-time.txt
git commit -m "Nightly Build Update"
git checkout -b "nightly-build"
git push origin nightly-build --force
env:
GITHUB_TOKEN: ${{ secrets.PIPELINE_ADMIN }}