Skip to content

Commit

Permalink
Adding push trigger and access token
Browse files Browse the repository at this point in the history
  • Loading branch information
Solaflex committed Sep 19, 2024
1 parent 7f19e2b commit 7596827
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/license_management.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Mirror Users with Team

on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # Runs daily at midnight
workflow_dispatch: # Allows manual trigger
Expand All @@ -9,6 +12,20 @@ jobs:
mirror-users:
runs-on: ubuntu-latest
steps:
# This step sets up Node.js version 20
- uses: actions/setup-node@v4
with:
node-version: 20
# This step installs the @octokit/action npm package
- run: npm install @octokit/action@6.1.0
# This step gets a GitHub App installation access token
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ secrets.APPLICATION_ID }}
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@v2

Expand Down

0 comments on commit 7596827

Please sign in to comment.