diff --git a/.github/workflows/cargo-publish.yml b/.github/workflows/cargo-publish.yml index b78e37dd099..ea9963315a7 100644 --- a/.github/workflows/cargo-publish.yml +++ b/.github/workflows/cargo-publish.yml @@ -11,6 +11,11 @@ on: description: "Tag to publish (e.g., v1.0.0)" required: true type: string + skip_check_repo: + description: "Skip checking if packages have been modified (useful for backfilling missed releases)" + required: false + type: boolean + default: false env: # This env var is used by Swatinem/rust-cache@v2 for the cache @@ -87,6 +92,7 @@ jobs: registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} args: "--all-features" path: . + check-repo: ${{ github.event_name != 'workflow_dispatch' || inputs.skip_check_repo != true }} report-failure: name: Report Workflow Failure runs-on: ubuntu-latest diff --git a/.github/workflows/java-publish.yml b/.github/workflows/java-publish.yml index 4c046593327..30d07658d17 100644 --- a/.github/workflows/java-publish.yml +++ b/.github/workflows/java-publish.yml @@ -33,7 +33,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - ref: ${{ inputs.ref }} + ref: ${{ inputs.ref || github.ref }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Check glibc version outside docker @@ -111,7 +111,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - ref: ${{ inputs.ref }} + ref: ${{ inputs.ref || github.ref }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Check glibc version outside docker @@ -192,7 +192,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - ref: ${{ inputs.ref }} + ref: ${{ inputs.ref || github.ref }} - uses: Swatinem/rust-cache@v2 - name: Set up Java 11 uses: actions/setup-java@v4 diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 32b1a3f7577..20195e679f2 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -153,7 +153,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ inputs.ref }} + ref: ${{ inputs.ref || github.ref }} fetch-depth: 0 lfs: true - name: Set up Python