Kaynağa Gözat

Cleanup backport-bot.yml

Issue gh-11313
Rob Winch 3 yıl önce
ebeveyn
işleme
1d4bf88a0f
1 değiştirilmiş dosya ile 7 ekleme ve 2 silme
  1. 7 2
      .github/workflows/backport-bot.yml

+ 7 - 2
.github/workflows/backport-bot.yml

@@ -17,5 +17,10 @@ jobs:
         with:
           distribution: 'temurin'
           java-version: '17'
-      - run: wget https://github.com/spring-io/backport-bot/releases/download/latest/backport-bot-0.0.1-SNAPSHOT.jar
-      - run: java -jar backport-bot-0.0.1-SNAPSHOT.jar --github.accessToken="${{ secrets.GITHUB_TOKEN }}" --github.event_name "${{ github.event_name }}" --github.event '${{ toJSON(github.event) }}'
+      - name: Download BackportBot
+        run: wget https://github.com/spring-io/backport-bot/releases/download/latest/backport-bot-0.0.1-SNAPSHOT.jar
+      - name: Backport
+          env:
+            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+            GITHUB_EVENT: ${{ toJSON(github.event) }}
+        run: java -jar backport-bot-0.0.1-SNAPSHOT.jar --github.accessToken="$GITHUB_TOKEN" --github.event_name "$GITHUB_EVENT_NAME" --github.event "$GITHUB_EVENT"