File tree Expand file tree Collapse file tree
ubuntu/check_version_update Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 version-update :
1010 runs-on : ubuntu-22.04
1111 steps :
12+
1213 - name : Check wether the versions.md file have been updated
1314 uses : eProsima/eProsima-CI/ubuntu/check_version_update@feature/versions-update
15+
16+ testing :
17+ runs-on : ubuntu-22.04
18+ steps :
19+
20+ - name : Sync repository
21+ uses : eProsima/eProsima-CI/external/checkout@feature/versions-update
22+ with :
23+ path : ${{ github.workspace }}
24+
25+ - name : Fetch all branches and tags
26+ uses : eProsima/eProsima-CI/ubuntu/git_fetch_all@feature/versions-update
27+ with :
28+ workspace : ${{ github.workspace }}
29+
30+ - name : Get diff file of version file
31+ id : diff
32+ uses : eProsima/eProsima-CI/ubuntu/git_diff@feature/versions-update
33+ with :
34+ file-path : ${{ github.workspace }}/${{ inputs.version-file-path }}
35+
36+ - name : Check if file change
37+ shell : bash
38+ run : |
39+
40+ cat $GITHUB_OUTPUT
41+
42+ if [[ "${{ steps.diff.outputs.have-changes }}" != "true" ]]; then
43+ echo "Version file ${{ inputs.version-file-path }} has not been updated"
44+ echo "T.T"
45+ exit 1
46+ else
47+ echo "Version file ${{ inputs.version-file-path }} updated."
48+ echo "HURRAY! ^.^"
49+ fi
Original file line number Diff line number Diff line change @@ -33,19 +33,18 @@ runs:
3333 workspace : ${{ github.workspace }}
3434
3535 - name : Get diff file of version file
36- id : git- diff
36+ id : diff
3737 uses : eProsima/eProsima-CI/ubuntu/git_diff@feature/versions-update
3838 with :
3939 file-path : ${{ github.workspace }}/${{ inputs.version-file-path }}
4040
4141 - name : Check if file change
4242 shell : bash
43- needs : git-diff
4443 run : |
4544
4645 cat $GITHUB_OUTPUT
4746
48- if [[ "${{ needs.git- diff.outputs.have-changes }}" != "true" ]]; then
47+ if [[ "${{ steps. diff.outputs.have-changes }}" != "true" ]]; then
4948 echo "Version file ${{ inputs.version-file-path }} has not been updated"
5049 echo "T.T"
5150 exit 1
You can’t perform that action at this time.
0 commit comments