Latest #25
Workflow file for this run
This file contains 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: Latest | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
workflow_dispatch: {} | |
jobs: | |
latest: | |
name: Update `latest` branch | |
if: github.even.repository.fork == false | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: latest | |
- name: Pull from tag | |
run: | | |
git fetch origin | |
git merge v${GITHUB_REF#refs/tags/v} --ff-only -m 'Update to latest tag' | |
git push origin latest |