Compare commits

...

No commits in common. "test" and "main" have entirely different histories.
test ... main

View file

@ -33,6 +33,7 @@ runs:
git checkout -b "$BRANCH"
echo branch=$BRANCH >> $GITHUB_OUTPUT
- name: "Check for updates"
id: changes
shell: bash
run: |
echo "Checking for flake updates"
@ -45,12 +46,12 @@ runs:
- name: "Push + create PR"
shell: bash
id: push
if: steps.git.outputs.change == 'true'
if: steps.changes.outputs.change == 'true'
run: |
echo "Creating PR"
git add flake.lock
git commit -m "${{ inputs.title }}"
git push --force-with-lease origin "${{ steps.git.outputs.clone.branch }}"
git push --force-with-lease origin "${{ steps.clone.outputs.clone.branch }}"
RESPONSE=$(curl -X 'POST' \
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/pulls" \
@ -59,7 +60,7 @@ runs:
-H 'Content-type: application/json' \
-d "{
"base": "${{ inputs.base }}",
"head": "${{ steps.git.outputs.clone.branch }}",
"head": "${{ steps.clone.outputs.clone.branch }}",
"title": "automated flake update"
}")
@ -68,7 +69,7 @@ runs:
echo NUMBER=$NUMBER >> $GITHUB_OUTPUT
- name: "Set automerge on PR"
shell: bash
if: steps.git.outputs.change == 'true' && steps.commit.outputs.number != 'null'
if: steps.changes.outputs.change == 'true' && steps.push.outputs.number != 'null'
run: |
RESPONSE=$(curl -X 'POST' \
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/pulls/${{ steps.push.outputs.number }}/merge" \