cloudpunks #427
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: cloudpunks | |
"on": | |
workflow_dispatch: | |
schedule: | |
- cron: "0 8 * * *" | |
jobs: | |
cloudpunks: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'cloudpunks' | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 100 | |
token: ${{ secrets.BOT_ACCESS_TOKEN }} | |
- name: Git config | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
- name: Upstream remote | |
run: git remote add upstream https://github.com/rolehippie/snapd.git | |
- name: Fetch all | |
run: git fetch --all --tags | |
- name: Checkout master | |
run: git checkout master | |
- name: Rebase master | |
run: | | |
git rebase upstream/master | |
- name: Push tags | |
run: git push --tags origin | |
- name: Push branch | |
run: git push --force origin | |
... |