Skip to content

Commit

Permalink
Update workflow for the fork
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma27 committed Oct 24, 2024
0 parents commit d46ca06
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/update-24.05.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Pull nixos-24.05 channel into Flying Circus fork

on:
#schedule:
#- cron: "0 0 * * *"

workflow_dispatch:
inputs:
sync_test_mode:
description: 'Fork Sync Test Mode'
type: boolean
default: false

jobs:
sync_from_nixos:
runs-on: ubuntu-latest
name: Sync latest commits from upstream repo
steps:
- name: Checkout target repo
uses: actions/checkout@v3
with:
ref: nixos-24.05
persist-credentials: false
- name: Sync upstream changes
id: sync
uses: aormsby/[email protected]
with:
target_sync_branch: nixos-24.05
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
upstream_sync_branch: nixos-24.05
upstream_sync_repo: nixos/nixpkgs
upstream_repo_access_token: ${{ secrets.GITHUB_TOKEN }}
test_mode: ${{ inputs.sync_test_mode }}
- name: New commits found
if: steps.sync.outputs.has_new_commits == 'true'
run: echo "New commits were found to sync."
- name: No new commits
if: steps.sync.outputs.has_new_commits == 'false'
run: echo "There were no new commits."
- name: Show value of 'has_new_commits'
run: echo ${{ steps.sync.outputs.has_new_commits }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Update workflows

0 comments on commit d46ca06

Please sign in to comment.