Compare commits

...

3 Commits

Author SHA1 Message Date
cal
d08a3e0711 Merge pull request 'ci: Fix act_runner auth for composite actions' (#3) from chore/optimize-claude-md into main
All checks were successful
Deploy to Foundry Server / deploy (push) Successful in 11m17s
Reviewed-on: #3
2026-02-18 19:52:08 +00:00
cal
5580d57f4c Merge branch 'main' into chore/optimize-claude-md 2026-02-18 19:49:56 +00:00
Cal Corum
4222ef9967 Fix act_runner auth: short-form local actions + full GitHub URLs
DEFAULT_ACTIONS_URL=self requires local actions use short form
(cal/gitea-actions/...) so the runner passes its auth token, and
GitHub actions use full URLs (https://github.com/...) to bypass
local resolution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 13:32:17 -06:00

View File

@ -9,29 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: https://github.com/actions/checkout@v4
with:
fetch-depth: 0 # Full history for tag counting
# Generate CalVer: YYYY.MM.BUILD
# BUILD = count of tags matching current month + 1
- name: Generate CalVer version
id: meta
run: |
YEAR=$(date -u +%Y)
MONTH=$(date -u +%-m)
PREFIX="${YEAR}.${MONTH}."
git fetch --tags
BUILD=$(git tag -l "${PREFIX}*" | wc -l)
BUILD=$((BUILD + 1))
VERSION="${PREFIX}${BUILD}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "CalVer version: ${VERSION}"
id: calver
uses: cal/gitea-actions/calver@main
- name: Setup Node.js
uses: actions/setup-node@v4
uses: https://github.com/actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
@ -43,7 +30,7 @@ jobs:
run: npm run build
- name: Deploy to Foundry server
uses: burnett01/rsync-deployments@7.0.1
uses: https://github.com/burnett01/rsync-deployments@7.0.1
with:
switches: -avz --delete --exclude='.git' --exclude='node_modules' --exclude='foundrydata' --exclude='.env' --exclude='.env.example' --exclude='.gitea' --exclude='.github' --exclude='.claude' --exclude='.husky' --exclude='docs' --exclude='docker-compose.yml' --exclude='test_results'
path: ./
@ -53,7 +40,7 @@ jobs:
remote_key: ${{ secrets.DEPLOY_SSH_KEY }}
- name: Fix ownership and restart Foundry
uses: appleboy/ssh-action@v1
uses: https://github.com/appleboy/ssh-action@v1
with:
host: ${{ secrets.DEPLOY_HOST }}
username: root
@ -62,13 +49,9 @@ jobs:
chown -R 1000:1000 /opt/foundry/data/Data/systems/vagabond/
cd /opt/foundry && docker compose restart foundry
# Create git tag via Gitea API (avoids branch protection issues)
- name: Tag release
if: success()
run: |
curl -s -X POST \
-H "Authorization: token ${{ github.token }}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\": \"${{ steps.meta.outputs.version }}\", \"target\": \"${{ github.sha }}\", \"name\": \"${{ steps.meta.outputs.version }}\"}" \
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/tags"
echo "Created tag ${{ steps.meta.outputs.version }}"
uses: cal/gitea-actions/gitea-tag@main
with:
version: ${{ steps.calver.outputs.version }}
token: ${{ github.token }}