Merge pull request #6 from collinmcneese/cm/ghes
Self-Hosted Runner Updates
This commit is contained in:
33
.github/workflows/issue_ops.yml
vendored
33
.github/workflows/issue_ops.yml
vendored
@@ -32,15 +32,21 @@ jobs:
|
||||
- name: Install GitHub Actions Importer
|
||||
shell: bash
|
||||
run: |
|
||||
gh extension install github/gh-actions-importer
|
||||
gh actions-importer version || gh extension install github/gh-actions-importer
|
||||
echo ${{ secrets.ghcr_password }} | gh actions-importer update --username ${{ secrets.ghcr_username }} --password-stdin
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ghcr_password }}
|
||||
- uses: actions-ecosystem/action-add-labels@v1
|
||||
GH_TOKEN: ${{ secrets.ghcr_password }}
|
||||
- uses: actions/github-script@v6
|
||||
if: always()
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
labels: actions-importer-running
|
||||
script: |
|
||||
github.rest.issues.addLabels({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
labels: ['actions-importer-running']
|
||||
})
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
@@ -96,7 +102,7 @@ jobs:
|
||||
if: always()
|
||||
with:
|
||||
name: output
|
||||
- uses: actions/github-script@v5
|
||||
- uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
const fs = require('fs')
|
||||
@@ -131,7 +137,7 @@ jobs:
|
||||
if: always()
|
||||
with:
|
||||
name: output
|
||||
- uses: actions/github-script@v5
|
||||
- uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
const fs = require('fs')
|
||||
@@ -194,7 +200,7 @@ jobs:
|
||||
echo ::set-output name=output::$pullRequest
|
||||
env:
|
||||
pullRequestPattern: "Pull request: "
|
||||
- uses: actions/github-script@v5
|
||||
- uses: actions/github-script@v6
|
||||
env:
|
||||
PULL_REQUEST_URL: "${{ steps.pull-request-url.outputs.output }}"
|
||||
with:
|
||||
@@ -223,7 +229,7 @@ jobs:
|
||||
if: always() && needs.execute-actions-importer.result == 'failure'
|
||||
with:
|
||||
name: logs
|
||||
- uses: actions/github-script@v5
|
||||
- uses: actions/github-script@v6
|
||||
if: always() && needs.execute-actions-importer.result == 'failure'
|
||||
with:
|
||||
script: |
|
||||
@@ -246,8 +252,13 @@ jobs:
|
||||
repo: context.repo.repo,
|
||||
body
|
||||
})
|
||||
- uses: actions-ecosystem/action-remove-labels@v1
|
||||
- uses: actions/github-script@v6
|
||||
if: always()
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
labels: actions-importer-running
|
||||
script: |
|
||||
await github.rest.issues.removeLabel({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: context.issue.number,
|
||||
name: 'actions-importer-running'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user