File tree Expand file tree Collapse file tree 2 files changed +28
-14
lines changed Expand file tree Collapse file tree 2 files changed +28
-14
lines changed Original file line number Diff line number Diff line change 53
53
pull : true
54
54
push : true
55
55
tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.PHP_VERSION }}
56
-
57
- - name : Get the PHP version
58
- id : php_version
59
- env :
60
- PHP_VERSION : ${{ env.PHP_VERSION }}
61
- IMAGE : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.PHP_VERSION }}
62
- run : |
63
- php_version=$(docker run --rm --entrypoint sh ${IMAGE} -c 'php -v | head -n 1 | cut -d " " -f 2')
64
- echo "PHP_VERSION=$php_version" >> $GITHUB_STATE
65
-
66
- - name : Print PHP Version
67
- run : echo "The detected PHP version is $PHP_VERSION"
68
- env :
69
- PHP_VERSION : ${{ steps.php_version.outputs.PHP_VERSION }}
Original file line number Diff line number Diff line change
1
+ name : Tag actual PHP versions
2
+ on :
3
+ workflow_dispatch :
4
+ branches : [ 8.4 ]
5
+
6
+ env :
7
+ PHP_VERSION : 8.4
8
+ REGISTRY : ghcr.io
9
+ IMAGE_NAME : ${{ github.repository }}
10
+
11
+ jobs :
12
+ tag :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Get the PHP version
16
+ id : php_version
17
+ env :
18
+ PHP_VERSION : ${{ env.PHP_VERSION }}
19
+ IMAGE : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.PHP_VERSION }}
20
+ run : |
21
+ echo "actual_version=${$(docker run --rm --entrypoint sh ${IMAGE} -c 'php -v | head -n 1 | cut -d " " -f 2')}" >> "$GITHUB_OUTPUT"
22
+ - name : Set up PHP version
23
+ id : set_php_version
24
+ env :
25
+ actual_version : ${{ steps.php_version.outputs.actual_version }}
26
+ run : |
27
+ echo "${actual_version}"
28
+
You can’t perform that action at this time.
0 commit comments