-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
32 lines (31 loc) · 1.04 KB
/
action.yml
File metadata and controls
32 lines (31 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: "Predict Next Version"
description: "Returns the latest version tag and the next version."
outputs:
latest-version:
description: "The latest version tag."
next-version:
description: "The predicted next version."
runs:
using: "composite"
steps:
- name: Checkout Code
uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
- name: Get Latest Version Tag
id: get_latest_version
run: |
${{ github.action_path }}/git_latest_version_tag.sh | tee latest_version.txt
shell: bash
- name: Predict Next Version
id: predict_next_version
run: |
${{ github.action_path }}/git_predict_next_version.sh | tee next_version.txt
shell: bash
- name: Set Outputs
shell: bash
run: |
echo "latest-version=$(cat latest_version.txt)" >> $GITHUB_OUTPUT
echo "next-version=$(cat next_version.txt)" >> $GITHUB_OUTPUT
echo "LATEST_VERSION=$(cat latest_version.txt)" >> $GITHUB_ENV
echo "NEXT_VERSION=$(cat next_version.txt)" >> $GITHUB_ENV