source:
CIVL/.github/workflows/trac-signal.yml@
ad4d47a
| Last change on this file since ad4d47a was 6427e3d, checked in by , 3 months ago | |
|---|---|
|
|
| File size: 1.2 KB | |
| Rev | Line | |
|---|---|---|
| [5af59cd] | 1 | name: Notify Trac via SVN |
| 2 | on: [push] # Trigger this on every push to any branch | |
| 3 | ||
| 4 | jobs: | |
| 5 | svn-trigger: | |
| [6427e3d] | 6 | if: github.repository == 'verified-software-lab/civl' |
| [5af59cd] | 7 | runs-on: ubuntu-latest |
| 8 | steps: | |
| 9 | # 1. Install the Subversion client on the GitHub runner | |
| 10 | - name: Install SVN | |
| 11 | run: sudo apt-get install -y subversion | |
| 12 | ||
| 13 | # 2. Execute the SVN bridge logic | |
| 14 | - name: Update SVN Signal File | |
| 15 | env: | |
| 16 | USER: ${{ secrets.SVN_USERNAME }} | |
| 17 | PASS: ${{ secrets.SVN_PASSWORD }} | |
| 18 | run: | | |
| 19 | # Checkout only the specific file to save time/bandwidth | |
| 20 | # Replace with your actual SVN URL and Port 3690 | |
| 21 | svn checkout svn://vsl.cis.udel.edu/civl-updates --username "$USER" --password "$PASS" --non-interactive --trust-server-cert | |
| 22 | ||
| 23 | # Write the 'before' and 'after' commit IDs into the signal file | |
| [925159b] | 24 | echo "${{ github.event.before }} ${{ github.event.after }} ${{ github.ref_name }}" > civl-updates/update.txt |
| [5af59cd] | 25 | |
| 26 | # Move into the directory and commit | |
| 27 | cd civl-updates | |
| 28 | svn commit -m "GitHub Push Signal: ${{ github.sha }}" --username "$USER" --password "$PASS" --non-interactive |
Note:
See TracBrowser
for help on using the repository browser.
