diff options
author | Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> | 2022-05-09 05:32:26 +0430 |
---|---|---|
committer | Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> | 2022-06-11 11:31:21 +0430 |
commit | 7e5f75aa37801b9e4e9f0e3fb9f0358cbafb6f63 (patch) | |
tree | d89b52220d3c628bc913e52a80acffabc7dbd68c /.github/workflows/issue-subscriber.yml | |
parent | 5d7b1a5f1b7ad4add1e6a4b6c43929d171e18544 (diff) | |
download | llvm-7e5f75aa37801b9e4e9f0e3fb9f0358cbafb6f63.tar.gz |
[github] format and refactor GitHub workflows
Format and refactor the GitHub workflow for consistency.
Differential Revision: https://reviews.llvm.org/D125197
Diffstat (limited to '.github/workflows/issue-subscriber.yml')
-rw-r--r-- | .github/workflows/issue-subscriber.yml | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/.github/workflows/issue-subscriber.yml b/.github/workflows/issue-subscriber.yml index 43014e4ccc25..a243c7526814 100644 --- a/.github/workflows/issue-subscriber.yml +++ b/.github/workflows/issue-subscriber.yml @@ -10,20 +10,20 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'llvm/llvm-project' steps: - - name: Setup Automation Script - run: | - curl -O -L https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$GITHUB_SHA/llvm/utils/git/github-automation.py - curl -O -L https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$GITHUB_SHA/llvm/utils/git/requirements.txt - chmod a+x github-automation.py - pip install -r requirements.txt + - name: Setup Automation Script + run: | + curl -O -L https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$GITHUB_SHA/llvm/utils/git/github-automation.py + curl -O -L https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$GITHUB_SHA/llvm/utils/git/requirements.txt + chmod a+x github-automation.py + pip install -r requirements.txt - - name: Update watchers - # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable - env: - LABEL_NAME: ${{ github.event.label.name }} - run: | - ./github-automation.py \ - --token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \ - issue-subscriber \ - --issue-number '${{ github.event.issue.number }}' \ - --label-name "$LABEL_NAME" + - name: Update watchers + # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable + env: + LABEL_NAME: ${{ github.event.label.name }} + run: | + ./github-automation.py \ + --token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \ + issue-subscriber \ + --issue-number '${{ github.event.issue.number }}' \ + --label-name "$LABEL_NAME" |