fix: drop unnneded step
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@@ -27,6 +27,11 @@ jobs:
|
||||
|
||||
- name: Check changed files
|
||||
id: check
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEA_ACTOR: ${{ gitea.actor }}
|
||||
GITEA_SERVER: "git.linux-gaming.ru"
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
run: |
|
||||
# Get changed files
|
||||
git diff --name-only > changed_files.txt
|
||||
@@ -35,23 +40,5 @@ jobs:
|
||||
cat changed_files.txt
|
||||
|
||||
if grep -q "wine_metadata.json" changed_files.txt; then
|
||||
echo "metadata=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "metadata=false" >> $GITHUB_OUTPUT
|
||||
bash push-to-gitea.sh
|
||||
fi
|
||||
|
||||
push:
|
||||
runs-on: ubuntu-latest
|
||||
needs: changes
|
||||
if: needs.changes.outputs.metadata == 'true'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
- name: Commit and push changes
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEA_ACTOR: ${{ gitea.actor }}
|
||||
GITEA_SERVER: "git.linux-gaming.ru"
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
run: bash push-to-gitea.sh
|
||||
|
Reference in New Issue
Block a user