main
|
Last change
on this file was 925159b, checked in by Stephen Siegel <siegel@…>, 4 days ago |
|
Added branch info to GitHub action
|
-
Property mode
set to
100644
|
|
File size:
1.1 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:
|
|---|
| 6 | runs-on: ubuntu-latest
|
|---|
| 7 | steps:
|
|---|
| 8 | # 1. Install the Subversion client on the GitHub runner
|
|---|
| 9 | - name: Install SVN
|
|---|
| 10 | run: sudo apt-get install -y subversion
|
|---|
| 11 |
|
|---|
| 12 | # 2. Execute the SVN bridge logic
|
|---|
| 13 | - name: Update SVN Signal File
|
|---|
| 14 | env:
|
|---|
| 15 | USER: ${{ secrets.SVN_USERNAME }}
|
|---|
| 16 | PASS: ${{ secrets.SVN_PASSWORD }}
|
|---|
| 17 | run: |
|
|---|
| 18 | # Checkout only the specific file to save time/bandwidth
|
|---|
| 19 | # Replace with your actual SVN URL and Port 3690
|
|---|
| 20 | svn checkout svn://vsl.cis.udel.edu/civl-updates --username "$USER" --password "$PASS" --non-interactive --trust-server-cert
|
|---|
| 21 |
|
|---|
| 22 | # Write the 'before' and 'after' commit IDs into the signal file
|
|---|
| [925159b] | 23 | echo "${{ github.event.before }} ${{ github.event.after }} ${{ github.ref_name }}" > civl-updates/update.txt
|
|---|
| [5af59cd] | 24 |
|
|---|
| 25 | # Move into the directory and commit
|
|---|
| 26 | cd civl-updates
|
|---|
| 27 | svn commit -m "GitHub Push Signal: ${{ github.sha }}" --username "$USER" --password "$PASS" --non-interactive
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.