Skip to content

Commit

Permalink
[PASS] Tested git-annex build 1628 (2/2 tests passed)
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Aug 31, 2024
0 parents commit 184b0b8
Show file tree
Hide file tree
Showing 5 changed files with 2,795 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/handle-result.yaml
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 }}
Loading

0 comments on commit 184b0b8

Please sign in to comment.