mirror of
https://github.com/ivuorinen/.github.git
synced 2026-01-26 11:23:57 +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
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'composer.json'
|
||||
- 'composer.lock'
|
||||
|
||||
jobs:
|
||||
ComposerInstall:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
4
.github/workflows/compress-images.yml
vendored
4
.github/workflows/compress-images.yml
vendored
@@ -6,18 +6,20 @@ on:
|
||||
schedule:
|
||||
- cron: '00 23 * * 0'
|
||||
jobs:
|
||||
build:
|
||||
CompressOnDemandOrSchedule:
|
||||
name: calibreapp/image-actions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Compress Images
|
||||
id: calibre
|
||||
uses: calibreapp/image-actions@main
|
||||
with:
|
||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
compressOnly: true
|
||||
|
||||
- name: Create New Pull Request If Needed
|
||||
if: steps.calibre.outputs.markdown != ''
|
||||
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'
|
||||
- '**.webp'
|
||||
jobs:
|
||||
build:
|
||||
CompressInPR:
|
||||
# Only run on Pull Requests within the same repository, and not from forks.
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
name: calibreapp/image-actions
|
||||
@@ -21,6 +21,9 @@ jobs:
|
||||
- name: Compress Images
|
||||
uses: calibreapp/image-actions@main
|
||||
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.
|
||||
# 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
|
||||
# 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.
|
||||
# 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 }}
|
||||
|
||||
Reference in New Issue
Block a user