Error with Action #299
-
With the following Code: name: Auto Minify and Commit
on:
push:
branches:
- main # Ändern Sie dies entsprechend dem Hauptzweig Ihrer Repository-Struktur
jobs:
minify_and_commit:
runs-on: ubuntu-latest
steps:
# Check-out your repository under $GITHUB_WORKSPACE, so the auto-minify job can access it
- name: Checkout Repository
uses: actions/checkout@v2
# Erstelle das 'output'-Verzeichnis
- name: Erstelle das 'output'-Verzeichnis
run: mkdir -p output
# Kopieren Sie das 'app'-Verzeichnis in das 'output'-Verzeichnis
- name: Kopieren Sie 'app' in 'output'
run: cp -r app/* output/
# Auto Minify JS
- name: Auto Minify JS
uses: nizarmah/auto-minify@v2.1
with:
directory: 'output/js' # Minifizieren Sie JavaScript-Dateien im 'app/js'-Verzeichnis
overwrite: true # Hinzufügen der Option 'overwrite: true' (überschreiben Sie die vorhandenen Dateien)
# Auto Minify CSS
- name: Auto Minify CSS
uses: nizarmah/auto-minify@v2.1
with:
directory: 'output/css' # Minifizieren Sie CSS-Dateien im 'app/css'-Verzeichnis
overwrite: true # Hinzufügen der Option 'overwrite: true' (überschreiben Sie die vorhandenen Dateien)
# Auto commit minified files to the repository
- name: Auto Commit Minified Files
uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: ${{ github.repository }}
commit_message: "Github Action: Auto Minified JS and CSS files"
branch: ${{ github.ref }}
I get this Error:
|
Beta Was this translation helpful? Give feedback.
Answered by
stefanzweifel
Aug 20, 2023
Replies: 1 comment
-
The core of the error message is:
This comes from the As you don't seem to work with multiple repos in this workflow, all you need to do is remove # Auto commit minified files to the repository
- name: Auto Commit Minified Files
uses: stefanzweifel/git-auto-commit-action@v4
with:
- repository: ${{ github.repository }}
commit_message: "Github Action: Auto Minified JS and CSS files"
branch: ${{ github.ref }}
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
olebohmbach
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The core of the error message is:
This comes from the
repository
setting. (Code)As you don't seem to work with multiple repos in this workflow, all you need to do is remove
repository
.