Compare commits
2 Commits
nixpkgs_bu
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
c31a576fbd
|
|||
|
34db721709
|
@@ -2,7 +2,7 @@ name: Weekly Flake Update
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 4 /14 * *"
|
- cron: "0 4 1/14 * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -89,6 +89,18 @@ jobs:
|
|||||||
grep -q ${{ github.ref_name }} &&
|
grep -q ${{ github.ref_name }} &&
|
||||||
exit 1 ||
|
exit 1 ||
|
||||||
exit 0
|
exit 0
|
||||||
|
- name: close other bump requests
|
||||||
|
run: |
|
||||||
|
for i in $(tea pr -o simple | grep "Automatic Nixpkgs update" | awk '{print $1}')
|
||||||
|
do
|
||||||
|
if [ "$i" = "" ]
|
||||||
|
then
|
||||||
|
echo "No bumps to close"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
tea pr close $i
|
||||||
|
fi
|
||||||
|
done
|
||||||
- name: Force push branch
|
- name: Force push branch
|
||||||
run: git push --force -u origin nixpkgs_bump_$(date +%Y%m%d)
|
run: git push --force -u origin nixpkgs_bump_$(date +%Y%m%d)
|
||||||
- name: Create pull request
|
- name: Create pull request
|
||||||
@@ -102,18 +114,6 @@ jobs:
|
|||||||
-L "bump"
|
-L "bump"
|
||||||
-t "$COMMIT_MSG"
|
-t "$COMMIT_MSG"
|
||||||
-d "$COMMIT_DESC"
|
-d "$COMMIT_DESC"
|
||||||
- name: close other bump requests
|
|
||||||
run: |
|
|
||||||
for i in $(tea pr -o simple | grep "Automatic Nixpkgs update" | awk '{print $1}')
|
|
||||||
do
|
|
||||||
if [ "$i" = "" ]
|
|
||||||
then
|
|
||||||
echo "No bumps to close"
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
tea pr close $i
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
- name: Skip pull request
|
- name: Skip pull request
|
||||||
if: steps.no-pr.outcome == 'failure'
|
if: steps.no-pr.outcome == 'failure'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user