Skip to content

Commit

Permalink
When running update-manifest workflow manually, do not require import…
Browse files Browse the repository at this point in the history
…ant update to create PR
  • Loading branch information
koplo199 committed Oct 3, 2023
1 parent 9769e75 commit 7af4520
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/update-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
PR_BRANCH: pr/ci-manifest/${{ github.ref_name }}
FEDC_ARGS: --update --require-important-update --commit-only --never-fork "bottles-repository/com.usebottles.bottles.yml"

jobs:
update-manifest:
Expand Down Expand Up @@ -43,6 +44,12 @@ jobs:
git commit -m "Update PyPI dependencies"
fi
- name: Update requirements
if: github.event_name == 'workflow_dispatch'
run: |
remove_important_update_only=$(sed 's/--require-important-update//g' <<< '${{ env.FEDC_ARGS }}')
echo "FEDC_ARGS=$remove_important_update_only" >> $GITHUB_ENV
- uses: docker://ghcr.io/flathub/flatpak-external-data-checker:latest
env:
GIT_AUTHOR_NAME: github-actions[bot]
Expand All @@ -52,7 +59,7 @@ jobs:
EMAIL: github-actions[bot]@users.noreply.github.com
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --update --require-important-update --commit-only --never-fork "bottles-repository/com.usebottles.bottles.yml"
args: ${{ env.FEDC_ARGS }}

- name: Create PR if necessary
working-directory: "bottles-repository"
Expand Down

0 comments on commit 7af4520

Please sign in to comment.