瀏覽代碼

Merge pull request #338 from kohsuke/github-actions-v2

Switch Release Drafter GitHub Action to YAML
Oleg Nenashev 6 年之前
父節點
當前提交
66ddd1fb4a
共有 2 個文件被更改,包括 16 次插入9 次删除
  1. 16 0
      .github/workflows/changelog-management.yml
  2. 0 9
      .github/workflows/main.workflow

+ 16 - 0
.github/workflows/changelog-management.yml

@@ -0,0 +1,16 @@
+name: Release Management
+
+on:
+  push:
+    # branches to consider in the event; optional, defaults to all
+    branches:
+      - master
+
+jobs:
+  update_draft_release:
+    runs-on: ubuntu-latest
+    steps:
+      # Drafts your next Release notes as Pull Requests are merged into "master"
+      - uses: toolmantim/[email protected]
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 0 - 9
.github/workflows/main.workflow

@@ -1,9 +0,0 @@
-workflow "Push" {
-  on = "push"
-  resolves = ["Draft Release"]
-}
-
-action "Draft Release" {
-  uses = "toolmantim/[email protected]"
-  secrets = ["GITHUB_TOKEN"]
-}