From 84a221e7dd408bf123be2adaa9c4e33ba4509a0d Mon Sep 17 00:00:00 2001 From: Brad Linden Date: Mon, 17 Jun 2024 17:41:53 -0700 Subject: Renamed tag-nightly.yaml to generalize it to other tags when using workflow_dispatch --- .github/workflows/tag-nightly.yaml | 28 ---------------------------- .github/workflows/tag-release.yaml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/tag-nightly.yaml create mode 100644 .github/workflows/tag-release.yaml diff --git a/.github/workflows/tag-nightly.yaml b/.github/workflows/tag-nightly.yaml deleted file mode 100644 index bb9e7094ec..0000000000 --- a/.github/workflows/tag-nightly.yaml +++ /dev/null @@ -1,28 +0,0 @@ -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 - if: ${{ secrets.GITHUB_NIGHTLY_TOKEN != "" }} - 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 - ) diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml new file mode 100644 index 0000000000..bb9e7094ec --- /dev/null +++ b/.github/workflows/tag-release.yaml @@ -0,0 +1,28 @@ +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 + if: ${{ secrets.GITHUB_NIGHTLY_TOKEN != "" }} + 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 + ) -- cgit v1.2.3