Procházet zdrojové kódy

Update `latest` tag when new release

yhirose před 1 měsícem
rodič
revize
b4d16a582d
1 změnil soubory, kde provedl 19 přidání a 0 odebrání
  1. 19 0
      .github/workflows/tag-latest.yml

+ 19 - 0
.github/workflows/tag-latest.yml

@@ -0,0 +1,19 @@
+name: Update latest tag
+
+on:
+  release:
+    types: [published]
+
+jobs:
+  tag-latest:
+    runs-on: ubuntu-latest
+    permissions:
+      contents: write
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+
+      - name: Force-update latest tag
+        run: |
+          git tag -f latest
+          git push origin latest --force