lizhanhui commented on code in PR #5118:
URL: https://github.com/apache/rocketmq/pull/5118#discussion_r974888328


##########
.github/workflows/snapshot-automation.yml:
##########
@@ -0,0 +1,21 @@
+name: Snapshot Release Automation
+on:
+  schedule: # schedule the job to run at 12 a.m. daily
+    - cron: "0 0 * * *"
+jobs:
+  snapshot:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v3
+        with:
+          ref: develop
+      - name: Setup JDK
+        uses: actions/setup-java@v2
+        with:
+          java-version: 8
+          distribution: "adopt"
+          cache: "maven"
+      - name: Deploy Snapshot
+        timeout-minutes: 40
+        run: mvn clean deploy -DskipTests=true'

Review Comment:
   Create a JIRA ticket, requesting them to add GitHub Secret for you. The 
secret will be accessible to GitHub Actions. 
   Note, remember to specify the name of the repository to add to when creating 
tickets.
   
   For the maven part, use variable substitution as described here: 
https://stackoverflow.com/questions/28071697/is-it-possible-to-pass-a-password-in-maven-deploy-in-the-command-line.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to