mirror of
https://github.com/ivuorinen/.github.git
synced 2026-02-06 03:43:40 +00:00
Fixes and updates
This commit is contained in:
7
.github/workflows/composer-install.yml
vendored
7
.github/workflows/composer-install.yml
vendored
@@ -1,5 +1,12 @@
|
|||||||
name: Run Composer Install
|
name: Run Composer Install
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ComposerInstall:
|
ComposerInstall:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
4
.github/workflows/compress-images.yml
vendored
4
.github/workflows/compress-images.yml
vendored
@@ -6,18 +6,20 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '00 23 * * 0'
|
- cron: '00 23 * * 0'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
CompressOnDemandOrSchedule:
|
||||||
name: calibreapp/image-actions
|
name: calibreapp/image-actions
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Compress Images
|
- name: Compress Images
|
||||||
id: calibre
|
id: calibre
|
||||||
uses: calibreapp/image-actions@main
|
uses: calibreapp/image-actions@main
|
||||||
with:
|
with:
|
||||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
compressOnly: true
|
compressOnly: true
|
||||||
|
|
||||||
- name: Create New Pull Request If Needed
|
- name: Create New Pull Request If Needed
|
||||||
if: steps.calibre.outputs.markdown != ''
|
if: steps.calibre.outputs.markdown != ''
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
|
|||||||
9
.github/workflows/pr-compress-images.yml
vendored
9
.github/workflows/pr-compress-images.yml
vendored
@@ -9,7 +9,7 @@ on:
|
|||||||
- '**.png'
|
- '**.png'
|
||||||
- '**.webp'
|
- '**.webp'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
CompressInPR:
|
||||||
# Only run on Pull Requests within the same repository, and not from forks.
|
# Only run on Pull Requests within the same repository, and not from forks.
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
name: calibreapp/image-actions
|
name: calibreapp/image-actions
|
||||||
@@ -21,6 +21,9 @@ jobs:
|
|||||||
- name: Compress Images
|
- name: Compress Images
|
||||||
uses: calibreapp/image-actions@main
|
uses: calibreapp/image-actions@main
|
||||||
with:
|
with:
|
||||||
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.
|
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is
|
||||||
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
|
# currently running the action. By default, the action can’t update Pull Requests initiated from
|
||||||
|
# forked repositories.
|
||||||
|
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and
|
||||||
|
# https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
|
||||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user