summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Linden <brad@lindenlab.com>2024-06-13 17:37:03 -0700
committerBrad Linden <brad@lindenlab.com>2024-06-13 17:41:17 -0700
commit41cb778fb0a2918816965ccc0ece5d0080d5180a (patch)
tree967a656a3ad93af817ef01826733dfdaa3925b0d
parent0ed3483b338376b7a18a05efae6fbc1d4b5db870 (diff)
Initial work setting up scheduled releases for develop branch.
-rw-r--r--.github/workflows/tag-nightly.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/tag-nightly.yaml b/.github/workflows/tag-nightly.yaml
new file mode 100644
index 0000000000..8193d68f2f
--- /dev/null
+++ b/.github/workflows/tag-nightly.yaml
@@ -0,0 +1,27 @@
+name: Tag Nightly Builds
+
+on:
+ # schedule event triggers always run on the default branch
+ # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
+ schedule:
+ - cron: "21 2 * * 2,4,6" # 2:21am UTC tues/thurs/sat == 7:21pm PDT mon/wed/fri -- see https://crontab.guru/#21_01_*_*_2,4,6
+ workflow_dispatch:
+
+jobs:
+ tag-develop-nightly:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Setup Date Env
+ run: |
+ echo NIGHTLY_DATE=$(date --rfc-3339=date) >> ${GITHUB_ENV}
+ - name: Update Tag
+ uses: actions/github-script@v7.0.1
+ with:
+ github-token: ${{ secrets.GITHUB_NIGHTLY_TOKEN }}
+ script: |
+ github.rest.git.createRef(
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ ref: "refs/tags/Second_Life_Develop#${{ env.NIGHTLY_DATE }}",
+ sha: context.sha
+ )