Skip to content

Commit

Permalink
Always build latest commit on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten authored Oct 2, 2020
1 parent c4d2815 commit fdb2030
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ jobs:
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: |
nix-env -iA nixpkgs.direnv
nix-env -f https://ihp.digitallyinduced.com/ihp-new.tar.gz -i ihp-new
ihp-new blog
git clone /~https://github.com/digitallyinduced/ihp-boilerplate.git
cd ihp-boilerplate
echo "<?php" >> replace.php
echo "\$file_contents = file_get_contents('./default.nix');" >> replace.php
echo '$new_content = preg_replace("/\".{40}\"/", "\"$argv[1]\"", $file_contents);' >> replace.php
echo '$new_content_with_ref = preg_replace("/ihp = builtins.fetchGit {/", "ihp = builtins.fetchGit { ref = \"*\";", $new_content);' >> replace.php
echo "file_put_contents('./default.nix', \$new_content_with_ref);" >> replace.php
echo "?>" >> replace.php
php replace.php $GITHUB_SHA
cat default.nix
nix-shell --run "echo 'It worked'"

0 comments on commit fdb2030

Please sign in to comment.