-
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.
Switch app workflows from ubuntu-latest to ubuntu-24.04 (#73)
* Switch from ubuntu-latest to ubuntu-24.04 * Update jaxxstorm/action-install-gh-release to v1 * Whitespace fixes
- Loading branch information
Showing
13 changed files
with
33 additions
and
53 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,4 +1,3 @@ | ||
|
||
name: increment-version | ||
|
||
on: | ||
|
@@ -27,25 +26,25 @@ on: | |
jobs: | ||
increment-version: | ||
name: increment-version | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
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 }} | ||
|
||
|
@@ -59,7 +58,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 | ||
|
@@ -68,7 +67,6 @@ 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 | ||
|
@@ -100,4 +98,3 @@ 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,4 +1,3 @@ | ||
|
||
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,4 +1,3 @@ | ||
|
||
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,15 +30,14 @@ on: | |
type: string | ||
default: '' | ||
|
||
|
||
jobs: | ||
increment-version: | ||
name: increment-version | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
version: ${{ steps.setversion.outputs.version }} | ||
previous_version: ${{ steps.setversion.outputs.previous_version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -47,7 +46,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 | ||
|
@@ -59,8 +58,7 @@ 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 | ||
|
@@ -74,7 +72,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 | ||
|
@@ -110,7 +108,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