Skip to content

Commit

Permalink
Merge pull request #14 from federated-wiki/fix/increase-base
Browse files Browse the repository at this point in the history
fix(ci): add ref and repository inputs
  • Loading branch information
almereyda authored Nov 9, 2023
2 parents 08023ef + b8df515 commit 21a6f08
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/increase-base-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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: |
Expand Down Expand Up @@ -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
7 changes: 6 additions & 1 deletion .github/workflows/release-increased-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 21a6f08

Please sign in to comment.