This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 527e5139dbc9a2aeb527a35e624c5efaf8ba6444
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Aug 27 15:40:07 2020 +0200

    Nightly tag push is not skipped in scheduled builds (#10597)
    
    With recent refactors, nightly tag was not pushed on
    scheduled event because it was depending on pushing images
    to github registry. Pushing images to github registry is
    skipped on scheduled builds, so pushing tag was also skipped.
    
    (cherry picked from commit e565368f2e988a06b0398b77e66859c138905ae7)
---
 .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 46cdea3..b57fdbd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -725,3 +725,38 @@ jobs:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           branch: ${{ steps.constraints-branch.outputs.branch }}
           directory: "repo"
+
+  tag-repo-nightly:
+    timeout-minutes: 10
+    name: "Tag repo nightly"
+    runs-on: ubuntu-latest
+    needs:
+      - docs
+      - docs-spell-check
+      - helm-tests
+      - static-checks
+      - static-checks-pylint
+      - tests-sqlite
+      - tests-postgres
+      - tests-mysql
+      - tests-kubernetes
+      - constraints-push
+      - prepare-backport-packages
+    if: github.event_name == 'schedule' &&  github.repository == 
'apache/airflow'
+    steps:
+      - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
+        uses: actions/checkout@v2
+      - name: "Free space"
+        run: ./scripts/ci/tools/ci_free_space_on_ci.sh
+      - name: "Tag commit"
+        run: |
+          BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's/refs\/heads\///')
+          echo "Tagging ${BRANCH_NAME}"
+          git tag -f nightly-${BRANCH_NAME} HEAD
+      - name: "Push tags"
+        uses: ad-m/github-push-action@master
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          tags: true
+          force: true
+          branch: master

Reply via email to