Skip to content

Commit 1f1f210

Browse files
v2.1.6 (#31)
Minor updates * Updating PHP 8 to 8.0.17 Build updates * Moving PHP_REVISION to individual overlay/tmp * Updating checkout action to v3 * Adding auto pr and auto release workflows
1 parent 429220c commit 1f1f210

14 files changed

Lines changed: 57 additions & 15 deletions

File tree

.github/workflows/auto-pr.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: auto-pr
2+
3+
on:
4+
create
5+
6+
jobs:
7+
create-pr:
8+
runs-on: ubuntu-latest
9+
steps:
10+
-
11+
if: github.ref_type == 'branch'
12+
name: Checkout Branch ${{ github.ref_name }}
13+
uses: actions/checkout@v3
14+
-
15+
name: Create Pull Request
16+
uses: bfren/pull-request@v2
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
destination_branch: main
20+
pr_title: ${{ github.ref_name }}
21+
pr_body: "Merging branch to create ${{ github.ref_name }}."

.github/workflows/auto-release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: auto-release
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
create-release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
-
12+
if: github.event.pull_request.merged == true
13+
name: Get Pull Request Title
14+
run: echo "PR_TITLE=${{ github.event.pull_request.title }}" >> $GITHUB_ENV
15+
shell: bash
16+
-
17+
name: Create Release ${{ env.PR_TITLE }}
18+
uses: bfren/action-gh-release@v1
19+
with:
20+
name: ${{ env.PR_TITLE }}
21+
tag_name: ${{ env.PR_TITLE }}

.github/workflows/dev-5_6.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
steps:
1313
-
1414
name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
build-5_6:
1717
runs-on: ubuntu-latest
1818
steps:
1919
-
2020
name: Checkout code
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222
-
2323
name: Get repository name
2424
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV

.github/workflows/dev-7_4.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
steps:
1313
-
1414
name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
build-7_4:
1717
runs-on: ubuntu-latest
1818
steps:
1919
-
2020
name: Checkout code
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222
-
2323
name: Get repository name
2424
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV

.github/workflows/dev-8_0.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
steps:
1313
-
1414
name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
build-8_0:
1717
runs-on: ubuntu-latest
1818
steps:
1919
-
2020
name: Checkout code
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222
-
2323
name: Get repository name
2424
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV

.github/workflows/main-5_6.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
-
1313
name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
-
1616
name: Get repository name
1717
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
@@ -20,7 +20,7 @@ jobs:
2020
name: Read PHP version - revision
2121
uses: bfren/read-file@v1
2222
with:
23-
file: ./5.6/PHP_REVISION
23+
file: ./5.6/overlay/tmp/PHP_REVISION
2424
id: php_revision
2525
-
2626
name: Read image version

.github/workflows/main-7_4.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
-
1313
name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
-
1616
name: Get repository name
1717
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
@@ -20,7 +20,7 @@ jobs:
2020
name: Read PHP version - revision
2121
uses: bfren/read-file@v1
2222
with:
23-
file: ./7.4/PHP_REVISION
23+
file: ./7.4/overlay/tmp/PHP_REVISION
2424
id: php_revision
2525
-
2626
name: Read image version

.github/workflows/main-8_0.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
-
1313
name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
-
1616
name: Get repository name
1717
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
@@ -20,7 +20,7 @@ jobs:
2020
name: Read PHP version - revision
2121
uses: bfren/read-file@v1
2222
with:
23-
file: ./8.0/PHP_REVISION
23+
file: ./8.0/overlay/tmp/PHP_REVISION
2424
id: php_revision
2525
-
2626
name: Read image version

0 commit comments

Comments
 (0)