Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/promote-playground.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Promote playground on tag

on:
push:
tags: ["**"]

permissions:
contents: write

jobs:
promote:
runs-on: ubuntu-latest
steps:
- name: Checkout with full history
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Move release/playground to the tag
run: |
TAG="${GITHUB_REF_NAME:-${GITHUB_REF##*/}}" # e.g. @onflow/[email protected]
git fetch --tags
git show --no-patch --pretty=fuller "$TAG"

# Create/update branch at the tag commit and push
git branch -f release/playground "$TAG"
git push --force-with-lease origin release/playground


Loading