You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/06/20 10:44:42 UTC
[GitHub] [spark] EnricoMi commented on a diff in pull request #36924: [SPARK-39532][INFRA] Move checkout and sync steps into re-usable action
EnricoMi commented on code in PR #36924:
URL: https://github.com/apache/spark/pull/36924#discussion_r901524495
##########
.github/actions/sync-fork-with-upstream/action.yml:
##########
@@ -0,0 +1,19 @@
+name: 'Sync sources'
+author: 'Apache Spark'
+description: 'A composite GitHub Action that syncs fork branch with Spark master'
+
+runs:
+ using: 'composite'
+ steps:
+ - name: Sync the current branch with the latest master in Apache Spark
+ if: github.repository != 'apache/spark'
+ shell: bash
+ run: |
+ echo "APACHE_SPARK_REF=$(git rev-parse HEAD)" >> $GITHUB_ENV
+ git fetch https://github.com/$GITHUB_REPOSITORY.git ${GITHUB_REF#refs/heads/}
+ git -c user.name='Apache Spark Test Account' -c user.email='sparktestacc@gmail.com' merge --no-commit --progress --squash FETCH_HEAD
+ git -c user.name='Apache Spark Test Account' -c user.email='sparktestacc@gmail.com' commit -m "Merged commit" --allow-empty
+
+branding:
+ icon: 'check-circle'
Review Comment:
This is defines the icon of the action for UI and marketplace purposes, for instance the blue circle with the triangle at https://github.com/marketplace/actions/checkout
Not sure if this is required, does not make much sense if action is not published.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org