Skip to content

Commit

Permalink
ci: Fix auto bump not calling build CI correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
JustTNE committed Jun 8, 2023
1 parent e407884 commit e6f4be0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/nixpkgs-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ on:
permissions:
contents: write

concurrency:
group: nyx-main-build

jobs:
bump:
concurrency:
group: nyx-main-build
runs-on: ubuntu-latest
outputs:
success: ${{ steps.bump.outcome == 'success' }}
steps:
- name: Install Nix
uses: cachix/install-nix-action@v21
Expand All @@ -33,7 +34,7 @@ jobs:
git add flake.lock
git commit -m "nixpkgs: bump to $(date +%Y%m%d)"
git push
# Call another workflow called deploy.yml
- name: Deploy
uses: ./.github/workflows/build.yml
if: steps.bump.outcome == 'success'
build:
needs: bump
if: needs.bump.outputs.success == 'true'
uses: ./.github/workflows/build.yml

1 comment on commit e6f4be0

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All packages were built and cached successfully!

Please sign in to comment.