small lv map changes #4161
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Labeling | |
on: | |
pull_request_target: | |
types: [opened] | |
jobs: | |
label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Check for ACTION_ENABLER secret and pass true to output if it exists to be checked by later steps" | |
id: value_holder | |
env: | |
ENABLER_SECRET: ${{ secrets.ACTION_ENABLER }} | |
run: | | |
unset SECRET_EXISTS | |
if [ -n "$ENABLER_SECRET" ]; then SECRET_EXISTS=true ; fi | |
echo "::set-output name=ACTIONS_ENABLED::$SECRET_EXISTS" | |
- name: Get The Script | |
if: steps.value_holder.outputs.ACTIONS_ENABLED | |
run: | | |
wget "https://raw.githubusercontent.com/${{ github.repository }}/master/.github/add_labels.py" | |
- name: Set up Python | |
if: steps.value_holder.outputs.ACTIONS_ENABLED | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
if: steps.value_holder.outputs.ACTIONS_ENABLED | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pygithub | |
sudo apt-get install dos2unix | |
- name: Add Labels | |
if: steps.value_holder.outputs.ACTIONS_ENABLED | |
run: | | |
python add_labels.py | |
env: | |
REPO: ${{ github.repository }} | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PR_NUMBER: ${{ github.event.number }} |