ChristopherHX / gitea-actions-runner

MIT License
9 stars 2 forks source link

Bug Report for ${{ github.job }} in GitHub Actions Configuration #7

Closed oilrich25 closed 11 months ago

oilrich25 commented 11 months ago

Issue Description

In the current GitHub Actions configuration, there is an issue with the ChristopherHX/gitea-actions-runner where the expected output of ${{ github.job }} is 'android', but the actual output does not match this expectation.

Relevant Configuration

name: Build

on:
   - push
   - pull_request

defaults:
  run:
    shell: bash
    working-directory: src
env:
  CACHE_EPOCH: 1
  CCACHE_MAXSIZE: 200M
  CCACHE_MAXFILES: 0
  SCCACHE_CACHE_SIZE: 200M
  GOCACHE: /root/gocache
  XDC_CACHE_HOME: /root/gocache
jobs:
  android:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: echo ${{ github.job }}

Actual Behavior

The actual output of ${{ github.job }} does not match the expected value android. using ChristopherHX/gitea-actions-runner in conjunction with actions-runner/bin/Runner.Worker

bug1

Expected Behavior

Expect ${{ github.job }} to output android as specified in the configuration. https://gitea.com/gitea/act_runner

ok1
oilrich25 commented 11 months ago

Fixed in f5496fb, you can update the runner

After testing, the problem has been successfully solved.