set update-nightly.yml permissions

Signed-off-by: Joyce <joycebrum@google.com>
This commit is contained in:
Joyce
2023-09-12 13:45:56 -03:00
committed by GitHub
parent 56803aae48
commit 9f729bcaa2

View File

@@ -18,10 +18,15 @@ on:
schedule:
- cron: 0 4 * * * # 4am UTC is 9pm PDT and 8pm PST
name: Set nightly branch to master HEAD
permissions: {}
jobs:
master-to-nightly:
if: github.repository == 'tensorflow/tensorflow' # Don't do this in forks
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: zofrex/mirror-branch@a8809f0b42f9dfe9b2c5c2162a46327c23d15266 # v1.0.3
name: Set nightly branch to master HEAD