Skip to content

sync-fork

sync-fork #6

Workflow file for this run

name: sync-fork
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: { }
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- run: gh repo sync $REPOSITORY -b $BRANCH_NAME
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY: ${{ github.repository }}
BRANCH_NAME: ${{ github.ref_name }}
- uses: actions/checkout@v4
- name: fetch and push tags
shell: bash
run: |
git fetch --tags https://github.com/dagger/dagger
git push --tags
env:
BRANCH_NAME: ${{ github.ref_name }}