Skip to content

Start new release cycle #1

Start new release cycle

Start new release cycle #1

name: Start new release cycle
on:
workflow_dispatch: {}
create:
branches:
- 'release-v*'
permissions:
contents: write
pull-requests: write
jobs:
update-file:
if: ${{ startsWith(github.ref, 'refs/heads/release-v')}}
runs-on: ubuntu-latest
steps:
- name: "Check out main branch"
uses: "actions/checkout@v4"
with:
ref: main
- name: "Update file"
run: |
echo "$(date)" > date.txt
- name: "Commit and push"
run: |
git config --local user.name "${GITHUB_ACTOR}"
git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com"
BRANCH=update-date-$(date +%s)
git checkout -b $BRANCH
git add date.txt
git commit -m "Update date.txt"
git push origin HEAD
gh pr create -B main --fill --reviewer "${GITHUB_ACTOR}"
env:
GH_TOKEN: ${{ github.token }}