Do not run build in same workflow as update

This commit is contained in:
lleyton
2022-11-04 16:09:22 -07:00
committed by GitHub
parent ccb17963b0
commit 0395d5f4ae
-10
View File
@@ -13,8 +13,6 @@ jobs:
container:
image: registry.fedoraproject.org/fedora:37
options: --cap-add=SYS_ADMIN --privileged
outputs:
updated: ${{ steps.save.outputs.updated }}
steps:
- name: Install packages
run: dnf install -y rpmdevtools git python
@@ -28,7 +26,6 @@ jobs:
run: bash ./update.sh
- name: Save
id: save
run: |
git config --global --add safe.directory "*"
if [[ `git status --porcelain` ]]; then
@@ -36,11 +33,4 @@ jobs:
git config user.email "<>"
git commit -a -m "Automatic Update: $(git status | grep modified | sed -r 's@.+/([^/]+)/[^/]+\n?@\1 @g' | tr -d '\n')"
git push -u origin main
echo "updated=1" >> $GITHUB_OUTPUT
fi
autobuild:
needs: autoupdate
if: needs.autoupdate.outputs.updated
uses: ./.github/workflows/autobuild.yml
secrets: inherit