You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/01/24 05:36:07 UTC

[GitHub] [superset] mik-laj commented on a change in pull request #12668: feat: weekly build

mik-laj commented on a change in pull request #12668:
URL: https://github.com/apache/superset/pull/12668#discussion_r563240882



##########
File path: .github/workflows/scheduled_weekly_build.yml
##########
@@ -0,0 +1,32 @@
+on:
+
+  schedule:
+    - cron: '0 0 * * 2'  # Midnight on every Tuesday
+
+name: Scheduled weekly build
+
+jobs:
+  build:
+    name: Create Release
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v2
+      - name: Get current date
+        run: echo "::set-output name=todays_date::$(date +'%Y-%m-%d')"
+      - name: Get latest tag
+        run: |
+          latest_tag_version_value=$(./scripts/find_latest_tag_version.sh)
+          echo "::set-output name=latest_tag_version::${latest_tag_version_value}"
+      - name: Create Release
+        id: create_release
+        uses: actions/create-release@v1
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          tag_name: superset-${{outputs.latest_tag_version.value}}-weekly-build-${{ outputs.todays_date.value }}
+          release_name: superset-${{outputs.latest_tag_version.value}}-weekly-build-${{ outputs.todays_date.value }}
+          body: |
+            ##todo: list of commits

Review comment:
       Personally, I try to limit the use of actions because they are not portable to another CI and very often they only add extra complexity to the scripts. If you want to understand now how this workflowsI works, you need to know bash and advanced features of Github Action. 
   
   Instead, you can use github CLI, which will allow these scripts to run locally as well, if you have the required permissions. For example, see:
   https://github.com/apache/airflow-site/blob/1b26f4fcd3a2eb5aa22effa41aaa65a075583d92/.github/workflows/build.yml#L99-L119
   
   




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org