diff --git a/.github/actions/update.yml b/.github/actions/update.yml new file mode 100644 index 0000000..3e4c5e1 --- /dev/null +++ b/.github/actions/update.yml @@ -0,0 +1,4 @@ +name: "Nix Flake Lock" +runs: + using: node20 + main: dist/index.js diff --git a/action.yml b/action.yml index 60c0bf5..665613a 100644 --- a/action.yml +++ b/action.yml @@ -142,9 +142,12 @@ runs: echo "GIT_COMMITTER_NAME=${{ inputs.git-committer-name }}" >> $GITHUB_ENV echo "GIT_COMMITTER_EMAIL=<${{ inputs.git-committer-email }}>" >> $GITHUB_ENV - name: Run update-flake-lock.sh - runs: - using: node20 - main: dist/index.js + uses: ./.github/actions/update.yml + with: + commit-msg: ${{ inputs.commit-msg }} + inputs: ${{ inputs.inputs }} + nix-options: ${{ inputs.nix-options }} + path-to-flake-dir: ${{ inputs.path-to-flake-dir }} - name: Save PR Body as file uses: DamianReeves/write-file-action@v1.3 with: