diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml index d30262496..175fd28e7 100644 --- a/.github/workflows/ci-nightly.yml +++ b/.github/workflows/ci-nightly.yml @@ -22,7 +22,7 @@ on: - cron: '00 19 * * *' jobs: GraphAr-ubuntu-arrow-from-source: - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphAr' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/pyspark.yml b/.github/workflows/pyspark.yml index 34c211e66..f81600ddb 100644 --- a/.github/workflows/pyspark.yml +++ b/.github/workflows/pyspark.yml @@ -20,9 +20,17 @@ on: push: branches: - main + paths: + - 'spark/**' + - 'pyspark/**' + - '.github/workflows/pyspark.yaml' pull_request: branches: - main + paths: + - 'spark/**' + - 'pyspark/**' + - '.github/workflows/pyspark.yaml' concurrency: group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8cc432d2b..9479cb47c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,11 @@ on: push: tags: - "v*" + workflow_dispatch: +concurrency: + group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true # Automatically create a GitHub Release, with release details specified (the relevant commits) jobs: @@ -30,9 +34,17 @@ jobs: os: [ubuntu-latest] steps: - - name: Release + - name: Extract tag name + id: tag + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphAr' }} + run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + + - name: Cut a versioned release uses: "marvinpinto/action-automatic-releases@latest" + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphAr' }} with: repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: ${{ steps.tag.outputs.TAG }} draft: true prerelease: false + title: "GraphAr ${{ steps.tag.outputs.TAG }}"