chore: migrate CI to GitHub Actions
This commit is contained in:
1 file changed
+6
-5
+6
-5
@@ -2,19 +2,20 @@ name: Synchronise Upstream Script
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# Runs at 02:00 GMT every Thursday (4 represents Thursday)
|
# Runs at 02:00 UTC every Thursday (4 represents Thursday)
|
||||||
- cron: '0 2 * * 4'
|
- cron: '0 2 * * 4'
|
||||||
workflow_dispatch: # Allows manual triggering to test the workflow behaviour
|
workflow_dispatch: # Allows manual triggering to test the workflow behaviour
|
||||||
|
|
||||||
|
# Grant the built-in GITHUB_TOKEN permission to push the synced script
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-script:
|
update-script:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
# Ensure we have the necessary credentials to push changes
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Download the latest script
|
- name: Download the latest script
|
||||||
run: |
|
run: |
|
||||||
@@ -27,7 +28,7 @@ jobs:
|
|||||||
- name: Check for changes and commit
|
- name: Check for changes and commit
|
||||||
run: |
|
run: |
|
||||||
# Configure Git identity for the automated commit
|
# Configure Git identity for the automated commit
|
||||||
git config user.name "gitea-actions-bot"
|
git config user.name "onixbyte"
|
||||||
git config user.email "actions@onixbyte.dev"
|
git config user.email "actions@onixbyte.dev"
|
||||||
|
|
||||||
# Add the script to the staging area
|
# Add the script to the staging area
|
||||||
Reference in new issue
Block a user