-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PASS] Tested git-annex build 1695 (1/1 tests passed)
- Loading branch information
DataLad Team
committed
Oct 28, 2024
0 parents
commit c8989f0
Showing
3 changed files
with
1,442 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Process result-* Branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- "result-*" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: List files | ||
run: ls -R | ||
|
||
- name: Upload results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.ref_name}} | ||
path: | | ||
*.log | ||
*.rc | ||
if-no-files-found: error | ||
|
||
- name: Switch to master | ||
run: | | ||
git fetch origin +refs/heads/master:refs/remotes/origin/master | ||
git checkout master | ||
git checkout ${{ github.ref_name }} -- '*.rc' | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '^3.8' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install --upgrade -r requirements.txt | ||
- name: Update badges | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
python update.py ${{ github.ref_name }} *.rc | ||
git rm -f *.rc | ||
git add status.json badges | ||
if ! git diff --cached --quiet | ||
then git commit -m 'Update for ${{ github.ref_name }}' | ||
git push | ||
else echo '[INFO] No changes to commit' | ||
fi | ||
git branch -D ${{ github.ref_name }} | ||
git push origin :refs/heads/${{ github.ref_name }} |
Oops, something went wrong.