-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Switch app workflows from ubuntu-latest to ubuntu-24.04 (#73)"
This reverts commit ec853f3.
- Loading branch information
Showing
13 changed files
with
53 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
name: increment-version | ||
|
||
on: | ||
|
@@ -26,25 +27,25 @@ on: | |
jobs: | ||
increment-version: | ||
name: increment-version | ||
runs-on: ubuntu-24.04 | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.setversion.outputs.patch }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
git config user.email "[email protected]" | ||
- name: Get Previous tag | ||
id: previoustag | ||
shell: bash | ||
run: | | ||
git tag | sort -r --version-sort | head -n1 | ||
echo "tag=$(git tag | sort -r --version-sort | head -n1)" >> "$GITHUB_OUTPUT" | ||
git tag | sort -r --version-sort | head -n1 | ||
echo "tag=$(git tag | sort -r --version-sort | head -n1)" >> "$GITHUB_OUTPUT" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.git-token }} | ||
|
||
|
@@ -58,7 +59,7 @@ jobs: | |
id: semvers | ||
uses: "WyriHaximus/github-action-next-semvers@v1" | ||
with: | ||
version: ${{ inputs.override != '' && inputs.override || steps.previousversion.outputs.version }} | ||
version: ${{ inputs.override != '' && inputs.override || steps.previousversion.outputs.version }} | ||
|
||
- name: Set bumped version in output | ||
id: setversion | ||
|
@@ -67,6 +68,7 @@ jobs: | |
echo "patch=${{ steps.semvers.outputs.patch }}" >> "$GITHUB_OUTPUT" | ||
echo "minor=${{ steps.semvers.outputs.patch }}" | cut -d. -f1,2 >> "$GITHUB_OUTPUT" | ||
echo "major=${{ steps.semvers.outputs.patch }}" | cut -d. -f1 >> "$GITHUB_OUTPUT" | ||
- name: Show the tags | ||
shell: bash | ||
|
@@ -98,3 +100,4 @@ jobs: | |
with: | ||
tag: v${{ steps.setversion.outputs.patch }} | ||
tag_exists_error: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,14 +30,15 @@ on: | |
type: string | ||
default: '' | ||
|
||
|
||
jobs: | ||
increment-version: | ||
name: increment-version | ||
runs-on: ubuntu-24.04 | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.setversion.outputs.version }} | ||
previous_version: ${{ steps.setversion.outputs.previous_version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -46,7 +47,7 @@ jobs: | |
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
git config user.email "[email protected]" | ||
- name: Get Previous tag | ||
id: previoustag | ||
|
@@ -58,7 +59,8 @@ jobs: | |
REGEX=$(echo "^${VERSION_PREFIX}([0-9]+)\.([0-9]+)\.([0-9]+)$") | ||
PREVIOUS_VERSION=$(git tag | sort -r --version-sort | (grep -E ${REGEX} || echo "") | head -n1 ) | ||
[ -z "$PREVIOUS_VERSION" ] && PREVIOUS_VERSION=${VERSION_PREFIX}0.0.0 | ||
echo "tag=$PREVIOUS_VERSION" >> "$GITHUB_OUTPUT" | ||
echo "tag=$PREVIOUS_VERSION" >> "$GITHUB_OUTPUT" | ||
- name: get previous version from tag | ||
id: previousversion | ||
|
@@ -72,7 +74,7 @@ jobs: | |
id: semvers | ||
uses: "WyriHaximus/github-action-next-semvers@v1" | ||
with: | ||
version: ${{ steps.previousversion.outputs.version }} | ||
version: ${{ steps.previousversion.outputs.version }} | ||
|
||
- name: get git hashes | ||
id: githashes | ||
|
@@ -108,7 +110,7 @@ jobs: | |
TAG=${{ steps.semvers.outputs.patch }} | ||
PREVIOUS_TAG=${{ steps.previousversion.outputs.version }} | ||
HASH=${{ steps.githashes.outputs.current_hash }} | ||
LAST_TAG_HASH=${{ steps.githashes.outputs.previous_tag_hash }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters