Skip to content

Commit d163d9d

Browse files
committed
Merge pull request #11 from Frederick888/gha-improv into master
* gha-improv: Update Action push event branches to master only Bump GitHub Actions dependencies Set up PR template and gh-ph
2 parents b885008 + 448f130 commit d163d9d

File tree

4 files changed

+40
-9
lines changed

4 files changed

+40
-9
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Description
2+
3+
# Changes
4+
<!-- === GH HISTORY FORMAT FENCE === --> <!--
5+
### [`%h`]({{.url}}/commits/%H) %s%n%n%b%n
6+
--> <!-- === GH HISTORY FORMAT FENCE === -->
7+
<!-- === GH HISTORY FENCE === -->
8+
<!-- Do NOT write here! -->
9+
<!-- It will be filled in by GitHub Actions automatically. -->
10+
<!-- === GH HISTORY FENCE === -->
11+
12+
# Checklist
13+
14+
- [ ] I have rebased my branch so that it has no conflicts
15+
- [ ] I have added tests where appropriate
16+
17+
# Is this a breaking change?
18+
19+
<!-- Yes / No. Reason. -->

.github/workflows/gh-ph.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Pull request history
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
gh-ph:
8+
name: Add commit history to pull request description
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
- uses: Frederick888/gh-ph@v1
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/php.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- synchronize
99
push:
1010
branches:
11-
- "**"
11+
- "master"
1212
tags-ignore:
1313
- "*"
1414

@@ -25,15 +25,11 @@ jobs:
2525
php-version: ["8.1", "8.0", "7.4", "7.3"]
2626

2727
steps:
28-
- uses: actions/checkout@v2
29-
- name: Git Commit Hash
30-
id: git_commit
31-
run: |
32-
echo "::set-output name=hash::$(git rev-parse HEAD)"
28+
- uses: actions/checkout@v3
3329

3430
- name: Cancel Previous Runs
3531
if: contains(matrix.os, 'ubuntu') && contains(matrix.php-version, '8.1')
36-
uses: styfle/cancel-workflow-action@0.6.0
32+
uses: styfle/cancel-workflow-action@0.11.0
3733
with:
3834
access_token: ${{ github.token }}
3935

.github/workflows/repo-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: repo-sync
11-
uses: wei/git-sync@v2
11+
uses: wei/git-sync@v3
1212
with:
1313
source_repo: "https://github.com/Frederick888/php-bencode.git"
1414
source_branch: "refs/remotes/source/*"
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: repo-sync
23-
uses: wei/git-sync@v2
23+
uses: wei/git-sync@v3
2424
with:
2525
source_repo: "https://github.com/Frederick888/php-bencode.git"
2626
source_branch: "refs/tags/*"

0 commit comments

Comments
 (0)