Skip to content

Commit c2a397f

Browse files
Merge pull request Ashishkumbhar01#55 from CodeWithSushil/master
update gitattributes and config CHANGLOG.md with github actions
2 parents 441c19b + a7d0da3 commit c2a397f

File tree

3 files changed

+51
-9
lines changed

3 files changed

+51
-9
lines changed

.gitattributes

+16-6
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,19 @@ LICENSE -diff
2727

2828
# Exclude files from `git archive` (useful when packaging a release)
2929
.env export-ignore
30-
/tests export-ignore
31-
/.github export-ignore
32-
/.gitignore export-ignore
33-
/.gitattributes export-ignore
34-
/vendor export-ignore
35-
/example export-ignore
30+
/tests/ export-ignore
31+
.github export-ignore
32+
.gitignore export-ignore
33+
.gitattributes export-ignore
34+
/vendor/ export-ignore
35+
/example/ export-ignore
36+
CODE_OF_CONDUCT.md export-ignore
37+
CHANGELOG.md export-ignore
38+
README.md export-ignore
39+
index.php export-ignore
40+
phpunit.xml export-ignore
41+
composer.json export-ignore
42+
composer.lock export-ignore
43+
.editorconfig export-ignore
44+
.env.example export-ignore
45+
LICENSE export-ignore

.github/workflows/release.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Update Changelog"
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
update:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 5
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
ref: master
20+
21+
- name: Update Changelog
22+
uses: stefanzweifel/changelog-updater-action@v1
23+
with:
24+
latest-version: ${{ github.event.release.name }}
25+
release-notes: ${{ github.event.release.body }}
26+
27+
- name: Commit updated CHANGELOG
28+
uses: stefanzweifel/git-auto-commit-action@v5
29+
with:
30+
branch: main
31+
commit_message: Update CHANGELOG
32+
file_pattern: CHANGELOG.md

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
![Supabase](https://getlogo.net/wp-content/uploads/2020/11/supabase-logo-vector.png)
22

3-
![GitHub Repo stars](https://img.shields.io/github/stars/CodeWithSushil/supabase-client?style=for-the-badge&logo=Github)
3+
44
![Packagist Downloads](https://img.shields.io/packagist/dt/supabase-php/supabase-client?style=for-the-badge&logo=composer)
55
![GitHub Release](https://img.shields.io/github/v/release/Ashishkumbhar01/supabase-php?style=for-the-badge)
66
![GitHub License](https://img.shields.io/github/license/Ashishkumbhar01/supabase-php?style=for-the-badge)
7-
![GitHub forks](https://img.shields.io/github/forks/Ashishkumbhar01/supabase-php?style=for-the-badge&logo=Github)
8-
[![GitHub Sponsors](https://img.shields.io/github/sponsors/Ashishkumbhar01?style=for-the-badge&logo=Github%20Sponsors&label=Support%20me)](https://github.com/sponsors/Ashishkumbhar01)
7+
![Packagist Dependency Version](https://img.shields.io/packagist/dependency-v/supabase-php/supabase-client/php?style=for-the-badge)
8+
99

1010

1111
Supabase client for PHP:

0 commit comments

Comments
 (0)