-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* go full async --------- Co-authored-by: PT-ATA No One <[email protected]> Co-authored-by: Verdict-as-a-Service Team <[email protected]> Co-authored-by: doxthree <[email protected]>
- Loading branch information
1 parent
bf1596d
commit a339887
Showing
17 changed files
with
2,234 additions
and
922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- phpdev-* | ||
paths: | ||
- "php/**" | ||
- ".github/workflows/ci-php.yaml" | ||
|
@@ -129,8 +130,14 @@ jobs: | |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/php}" >> $GITHUB_ENV | ||
echo $RELEASE_VERSION | ||
- name: extract version | ||
if: startsWith(github.ref, 'refs/heads/phpdev-') | ||
run: | | ||
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/phpdev-}" >> $GITHUB_ENV | ||
echo $RELEASE_VERSION | ||
- name: checkout | ||
if: startsWith(github.ref, 'refs/tags/php') | ||
if: startsWith(github.ref, 'refs/tags/php') || startsWith(github.ref, 'refs/heads/phpdev-') | ||
uses: actions/checkout@v4 | ||
|
||
- name: publish on site repo | ||
|
@@ -151,8 +158,25 @@ jobs: | |
git remote add origin https://ata-no-one:[email protected]/GDATASoftwareAG/vaas-php | ||
git push origin main --tags --force | ||
- name: publish on site repo | ||
if: startsWith(github.ref, 'refs/heads/phpdev-') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
working-directory: php/src/vaas | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Version Bot" | ||
sed -i "s/\"version\": \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/\"version\": \"$RELEASE_VERSION\"/g" ./composer.json | ||
cp ../../../Readme.md . | ||
git init | ||
git add . | ||
git commit -m"publish php $RELEASE_VERSION" | ||
git branch -M $RELEASE_VERSION | ||
git remote add origin https://ata-no-one:[email protected]/GDATASoftwareAG/vaas-php | ||
git push origin $RELEASE_VERSION --force | ||
- name: sync packagist | ||
if: startsWith(github.ref, 'refs/tags/php') | ||
if: startsWith(github.ref, 'refs/tags/php') || startsWith(github.ref, 'refs/heads/phpdev-') | ||
env: | ||
PACKAGIST_API_TOKEN: ${{ secrets.PACKAGIST_API_TOKEN }} | ||
run: curl -XPOST -H'content-type:application/json' "https://packagist.org/api/update-package?username=gdatacyberdefense&apiToken=$PACKAGIST_API_TOKEN" -d'{"repository":{"url":"https://packagist.org/packages/gdata/vaas"}}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
find . -name composer.json -not -path */vendor/* | while read composer; do | ||
dir=$(dirname $composer) | ||
echo "Updating $dir" | ||
composer --working-dir=$dir update | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.