Skip to content

Commit

Permalink
test using GITHUB_SECRET
Browse files Browse the repository at this point in the history
  • Loading branch information
Frefreak committed Jan 2, 2024
1 parent a5f0708 commit 4ce0b75
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@ on:
- cron: '0 * * * *'
workflow_dispatch:

permissions: write-all

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
automate-task:
runs-on: self-hosted
container:
image: c4r50nz/selenium-chrome:v20230701

steps:
- name: Clone repository
- uses: actions/checkout@v2
- name: configure
run: |
rm -rf huma-rime
git clone https://x-access-token:${{ secrets.PAT }}@github.com/zhhmn/huma-rime
cd huma-rime
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
Expand All @@ -35,3 +38,4 @@ jobs:
git tag ${{ steps.script.outputs.tag }}
git tag
git push --tags origin HEAD:master

0 comments on commit 4ce0b75

Please sign in to comment.