diff --git a/.github/workflows/increase-base-version.yml b/.github/workflows/increase-base-version.yml index fd98124..113caaa 100644 --- a/.github/workflows/increase-base-version.yml +++ b/.github/workflows/increase-base-version.yml @@ -9,6 +9,15 @@ on: next-version: required: true type: string + repository: + required: false + type: string + default: federated-wiki/wiki-docker-plugins + ref: + required: false + type: string + default: main + workflow_call: inputs: previous-version: @@ -17,6 +26,14 @@ on: next-version: required: true type: string + repository: + required: false + type: string + default: federated-wiki/wiki-docker-plugins + ref: + required: false + type: string + default: main permissions: pull-requests: write @@ -32,6 +49,9 @@ jobs: pull-request-number: ${{ steps.pr.outputs.pull-request-number }} steps: - uses: actions/checkout@v4 + with: + repository: ${{ inputs.repository }} + ref: ${{ inputs.ref }} - name: Upgrade version number run: | @@ -68,4 +88,7 @@ jobs: needs: ['increase-version'] if: needs.increase-version.outputs.pull-request-number != '' uses: ./.github/workflows/release-increased-version.yml + with: + ref: ${{ inputs.ref }} + repository: ${{ inputs.repository }} secrets: inherit diff --git a/.github/workflows/release-increased-version.yml b/.github/workflows/release-increased-version.yml index 68f343b..5666f9c 100644 --- a/.github/workflows/release-increased-version.yml +++ b/.github/workflows/release-increased-version.yml @@ -10,6 +10,10 @@ on: required: false type: string default: ${{ github.ref }} + repository: + required: false + type: string + default: federated-wiki/wiki-docker-plugins permissions: pull-requests: write @@ -29,10 +33,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 ref: ${{ inputs.ref }} + repository: ${{ inputs.repository }} - name: Detect and tag new version uses: salsify/action-detect-and-tag-new-version@v2