Skip to content

Commit

Permalink
ci: add GH_TOKEN for github cli
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Jun 29, 2024
1 parent 46aaade commit 93257c4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ jobs:

- name: Install poetry
run: pipx install poetry
shell: bash

- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"

- run: poetry install
shell: bash

- name: Setup git user
run: |
Expand All @@ -38,11 +36,9 @@ jobs:
unzip FFXIVNetworkOpcodes.zip
cp -r FFXIVNetworkOpcodes-master/output .
rm -rf FFXIVNetworkOpcodes.zip FFXIVNetworkOpcodes-master
shell: bash
- name: Update opcodes
run: poetry run python scripts/update_opcode.py
shell: bash

- name: Commit opcode
id: opcode-commit
Expand All @@ -53,11 +49,9 @@ jobs:
- name: Update instance data
run: poetry run python scripts/extract_instance.py
shell: bash

- name: Update roulette data
run: poetry run python scripts/extract_roulette.py
shell: bash

- name: Commit data
id: data-commit
Expand All @@ -68,9 +62,9 @@ jobs:
- name: Push commits
run: git push
shell: bash

- name: Trigger build
if: ${{ steps.opcode-commit.outputs.DIFF == 'true' || steps.data-commit.outputs.DIFF == 'true' }}
run: gh workflow run build.yml
shell: bash
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 93257c4

Please sign in to comment.