Skip to content

Workflow file for this run

on:
[push]
# schedule:
# # everyday at midnight
# - cron: "-1 0 * * *"
jobs:
sync_laravel_nova_job:
runs-on: ubuntu-latest
name: "Syncs Laravel Nova Releases"
steps:
- uses: actions/checkout@v4
- name: "Runs sync action"
id: "releases"
uses: "./.github/actions/sync-nova"
with:
target_nova_repo: ${{ vars.TARGET_NOVA_REPO }}
personal_access_token: ${{ secrets.NOVA_REPO_ACCESS_TOKEN }}
nova_user: ${{ secrets.NOVA_USER }}
nova_password: ${{ secrets.NOVA_PASSWORD }}
- uses: actions/checkout@v4
- name: "Create branch and commit changes"
env:
NOVA_USER: ${{ secrets.NOVA_USER }}
NOVA_PASSWORD: ${{ secrets.NOVA_PASSWORD }}
NOVA_AUTH_ENCODED: ${{ steps.releases.outputs.nova_auth_encoded }}
run: |
ls -la
git config --global user.email "[email protected]"
git config --global user.name "Kaspar Rosin"
git checkout -b "${{ steps.releases.outputs.next_release_tag }}"
git rm -rf .
echo "Test ${{ env.NOVA_AUTH_ENCODED }} end"
wget -d \
--header="Authorization: Basic ${{ env.NOVA_AUTH_ENCODED }}" \
${{ steps.releases.outputs.nova_dist_url }}
git add .
git commit -m "test"
git push --set-upstream origin ${{ steps.releases.outputs.next_release_tag }} --force