Skip to content

[PASS] Tested git-annex build 1624 (2/2 tests passed) #2285

[PASS] Tested git-annex build 1624 (2/2 tests passed)

[PASS] Tested git-annex build 1624 (2/2 tests passed) #2285

Workflow file for this run

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 }}