diff --git a/README.md b/README.md index ae59ae9..b5111bf 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@ # action-get-primary-language Get Primary Language + +Set a personal PAT on the repository or an organization PAT with minimal rights called GH_PAT + +Use the ${{ needs.read_type.outputs.primaryLanguage}} in subsequent jobs + ``` name: CI Testing Primary Language on: [push] jobs: read_type: + outputs: + primaryLanguage: ${{ steps.read.outputs.primary_language }} runs-on: ubuntu-latest name: Detect Primary Language steps: - # To use this repository's private action, - # you must check out the repository - # Temporarily public, testing in personal Org - - name: Checkout - uses: actions/checkout@v4 - with: - token: ${{ secrets.GH_PAT}} - name: Read integration_type id: read uses: fiddlermikey/action-get-primary-language@v1