source: CIVL/.github/workflows/trac-signal.yml@ 6b26bbb

1.23 2.0 main
Last change on this file since 6b26bbb was 6427e3d, checked in by Youngjun Lee <youngjunlee7@…>, 3 weeks ago

Restrict GitHub-SVN action on a forked repo

  • Property mode set to 100644
File size: 1.2 KB
Line 
1name: Notify Trac via SVN
2on: [push] # Trigger this on every push to any branch
3
4jobs:
5 svn-trigger:
6 if: github.repository == 'verified-software-lab/civl'
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
24 echo "${{ github.event.before }} ${{ github.event.after }} ${{ github.ref_name }}" > civl-updates/update.txt
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.