[Core] Update GH Actions (#3235)

* [Core] Update GH Actions

* fix dockerbuild

* add empty lines at the end of files
This commit is contained in:
Bocki 2023-01-31 22:11:59 +01:00 committed by GitHub
parent af6aedd536
commit 1fe55314be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 22 deletions

View File

@ -17,11 +17,11 @@ jobs:
steps: steps:
- -
name: Checkout name: Checkout
uses: actions/checkout@v2.3.4 uses: actions/checkout@v3
- -
name: Docker meta name: Docker meta
id: docker_meta id: docker_meta
uses: docker/metadata-action@v3.5.0 uses: docker/metadata-action@v4
with: with:
images: | images: |
${{ env.DOCKERHUB_SLUG }} ${{ env.DOCKERHUB_SLUG }}
@ -33,26 +33,26 @@ jobs:
type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/20') }} type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/20') }}
- -
name: Set up QEMU name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v2
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1.6.0 uses: docker/setup-buildx-action@v2
- -
name: Login to DockerHub name: Login to DockerHub
uses: docker/login-action@v1.10.0 uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- -
name: Login to GitHub Container Registry name: Login to GitHub Container Registry
uses: docker/login-action@v1.10.0 uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- -
name: Build and push name: Build and push
uses: docker/bake-action@v1.6.0 uses: docker/bake-action@v2
with: with:
files: | files: |
./docker-bake.hcl ./docker-bake.hcl

View File

@ -9,11 +9,11 @@ jobs:
documentation: documentation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
persist-credentials: false persist-credentials: false
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@2.17.1 uses: shivammathur/setup-php@v2
with: with:
php-version: 8.0 php-version: 8.0
- name: Install dependencies - name: Install dependencies
@ -21,7 +21,7 @@ jobs:
- name: Generate documentation - name: Generate documentation
run: daux generate run: daux generate
- name: Deploy same repository 🚀 - name: Deploy same repository 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5 uses: JamesIves/github-pages-deploy-action@v4
with: with:
folder: "static" folder: "static"
branch: gh-pages branch: gh-pages

View File

@ -13,7 +13,7 @@ jobs:
matrix: matrix:
php-versions: ['7.4'] php-versions: ['7.4']
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2 - uses: shivammathur/setup-php@v2
with: with:
php-version: ${{ matrix.php-versions }} php-version: ${{ matrix.php-versions }}
@ -26,7 +26,7 @@ jobs:
matrix: matrix:
php-versions: ['7.4'] php-versions: ['7.4']
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2 - uses: shivammathur/setup-php@v2
with: with:
php-version: ${{ matrix.php-versions }} php-version: ${{ matrix.php-versions }}
@ -38,7 +38,7 @@ jobs:
executable_php_files_check: executable_php_files_check:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- run: | - run: |
if find -name "*.php" -executable -type f -print -exec false {} + if find -name "*.php" -executable -type f -print -exec false {} +
then then

View File

@ -11,7 +11,7 @@ jobs:
# Needs additional permissions https://github.com/actions/first-interaction/issues/10#issuecomment-1041402989 # Needs additional permissions https://github.com/actions/first-interaction/issues/10#issuecomment-1041402989
steps: steps:
- name: Check out self - name: Check out self
uses: actions/checkout@v2.3.2 uses: actions/checkout@v3
with: with:
ref: ${{github.event.pull_request.head.ref}} ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}} repository: ${{github.event.pull_request.head.repo.full_name}}
@ -31,7 +31,7 @@ jobs:
docker build -t prbuild .; docker build -t prbuild .;
docker run -d -v $GITHUB_WORKSPACE/whitelist.txt:/app/whitelist.txt -v $GITHUB_WORKSPACE/DEBUG:/app/DEBUG -p 3001:80 prbuild docker run -d -v $GITHUB_WORKSPACE/whitelist.txt:/app/whitelist.txt -v $GITHUB_WORKSPACE/DEBUG:/app/DEBUG -p 3001:80 prbuild
- name: Setup python - name: Setup python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.7' python-version: '3.7'
cache: 'pip' cache: 'pip'
@ -48,8 +48,7 @@ jobs:
body="${body//'%'/'%25'}"; body="${body//'%'/'%25'}";
body="${body//$'\n'/'%0A'}"; body="${body//$'\n'/'%0A'}";
body="${body//$'\r'/'%0D'}"; body="${body//$'\r'/'%0D'}";
echo "::set-output name=bodylength::${#body}" echo "bodylength=${#body}" >> $GITHUB_OUTPUT
echo "::set-output name=body::$body"
- name: Find Comment - name: Find Comment
if: ${{ steps.testrun.outputs.bodylength > 130 }} if: ${{ steps.testrun.outputs.bodylength > 130 }}
uses: peter-evans/find-comment@v2 uses: peter-evans/find-comment@v2
@ -64,6 +63,5 @@ jobs:
with: with:
comment-id: ${{ steps.fc.outputs.comment-id }} comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }} issue-number: ${{ github.event.pull_request.number }}
body: | body-file: comment.txt
${{ steps.testrun.outputs.body }} edit-mode: replace
edit-mode: replace

View File

@ -13,7 +13,7 @@ jobs:
matrix: matrix:
php-versions: ['7.4', '8.0', '8.1'] php-versions: ['7.4', '8.0', '8.1']
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2 - uses: shivammathur/setup-php@v2
with: with:
php-version: ${{ matrix.php-versions }} php-version: ${{ matrix.php-versions }}