sync-fork #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sync-fork | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: { } | |
permissions: write-all | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo gh repo sync $REPOSITORY -b $BRANCH_NAME | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REPOSITORY: ${{ github.repository }} | |
BRANCH_NAME: ${{ github.ref_name }} | |
- 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 | |
continue-on-error: true | |
run: | | |
git fetch --tags https://github.com/dagger/dagger | |
git push --tags | |
env: | |
BRANCH_NAME: ${{ github.ref_name }} | |