Nightly Release Tag (v4-next) #37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Nightly Release Tag (v4-next) | |
| on: | |
| schedule: | |
| # Run the workflow every night at 5:00 AM UTC. | |
| - cron: "0 5 * * *" | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: ${{ github.workflow }}-v4-next | |
| jobs: | |
| nightly-release-tag-v4-next: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| with: | |
| ref: v4-next | |
| token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} | |
| - name: Create v4-next Nightly Tag | |
| run: | | |
| git config --global user.email "tech@aztecprotocol.com" | |
| git config --global user.name "AztecBot" | |
| current_version=$(jq -r '."."' .release-please-manifest.json) | |
| echo "Current version: $current_version" | |
| nightly_tag="v${current_version}-nightly.$(date -u +%Y%m%d)" | |
| echo "v4-next nightly tag: $nightly_tag" | |
| git tag -a "$nightly_tag" -m "$nightly_tag" | |
| git push origin "$nightly_tag" |