Update branding
This commit is contained in:
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@@ -1 +1 @@
|
||||
* @valet-customers/reviewers
|
||||
* @actions/importer
|
||||
|
||||
2
.github/ISSUE_TEMPLATE/azure_devops.md
vendored
2
.github/ISSUE_TEMPLATE/azure_devops.md
vendored
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: Azure DevOps
|
||||
about: Migrate Azure DevOps pipelines to GitHub Actions with Valet
|
||||
about: Migrate Azure DevOps pipelines to GitHub Actions
|
||||
title: "[Azure DevOps]:"
|
||||
labels: azure-devops
|
||||
assignees: ""
|
||||
|
||||
8
.github/ISSUE_TEMPLATE/circle_ci.md
vendored
8
.github/ISSUE_TEMPLATE/circle_ci.md
vendored
@@ -1,7 +1,7 @@
|
||||
---
|
||||
name: Circle CI
|
||||
about: Migrate Circle CI pipelines to GitHub Actions with Valet
|
||||
title: "[Circle CI]:"
|
||||
name: CircleCI
|
||||
about: Migrate CircleCI pipelines to GitHub Actions
|
||||
title: "[CircleCI]:"
|
||||
labels: circle-ci
|
||||
assignees: ""
|
||||
---
|
||||
@@ -10,7 +10,7 @@ assignees: ""
|
||||
|
||||
Provide the following required inputs:
|
||||
|
||||
Organization: _The Circle CI organization to migrate pipelines from._
|
||||
Organization: _The CircleCI organization to migrate pipelines from._
|
||||
|
||||
## Available commands
|
||||
|
||||
|
||||
8
.github/ISSUE_TEMPLATE/gitlab_ci.md
vendored
8
.github/ISSUE_TEMPLATE/gitlab_ci.md
vendored
@@ -1,7 +1,7 @@
|
||||
---
|
||||
name: GitLab CI
|
||||
about: Migrate GitLab CI pipelines to GitHub Actions with Valet
|
||||
title: "[GitLab CI]:"
|
||||
name: GitLab
|
||||
about: Migrate GitLab pipelines to GitHub Actions
|
||||
title: "[GitLab]:"
|
||||
labels: gitlab
|
||||
assignees: ""
|
||||
---
|
||||
@@ -11,7 +11,7 @@ assignees: ""
|
||||
Provide the following required inputs:
|
||||
|
||||
Namespace:
|
||||
_The GitLab CI namespace (or group) to migrate pipelines from._
|
||||
_The GitLab namespace (or group) to migrate pipelines from._
|
||||
|
||||
## Available commands
|
||||
|
||||
|
||||
2
.github/ISSUE_TEMPLATE/jenkins.md
vendored
2
.github/ISSUE_TEMPLATE/jenkins.md
vendored
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: Jenkins
|
||||
about: Migrate Jenkins jobs to GitHub Actions with Valet
|
||||
about: Migrate Jenkins jobs to GitHub Actions
|
||||
title: "[Jenkins]:"
|
||||
labels: jenkins
|
||||
assignees: ""
|
||||
|
||||
2
.github/ISSUE_TEMPLATE/support.md
vendored
2
.github/ISSUE_TEMPLATE/support.md
vendored
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: Request support
|
||||
about: Request support or assistance from the Valet team
|
||||
about: Request support or assistance
|
||||
title: ""
|
||||
labels: support
|
||||
assignees: ""
|
||||
|
||||
2
.github/ISSUE_TEMPLATE/travis_ci.md
vendored
2
.github/ISSUE_TEMPLATE/travis_ci.md
vendored
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: Travis CI
|
||||
about: Migrate Travis CI pipelines to GitHub Actions with Valet
|
||||
about: Migrate Travis CI pipelines to GitHub Actions
|
||||
title: "[Travis CI]:"
|
||||
labels: travis-ci
|
||||
assignees: ""
|
||||
|
||||
50
.github/workflows/issue_ops.yml
vendored
50
.github/workflows/issue_ops.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: valet-issue-ops
|
||||
name: actions-importer-issue-ops
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
@@ -23,24 +23,24 @@ env:
|
||||
CIRCLE_CI_SOURCE_GITHUB_ACCESS_TOKEN: ${{ secrets.circle_ci_source_github_access_token }}
|
||||
|
||||
jobs:
|
||||
execute-valet:
|
||||
execute-actions-importer:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
command: ${{ steps.prepare.outputs.command }}
|
||||
log-filename: ${{ steps.logs.outputs.filename }}
|
||||
steps:
|
||||
- name: Install Valet CLI
|
||||
- name: Install GitHub Actions Importer
|
||||
shell: bash
|
||||
run: |
|
||||
gh extension install github/gh-valet
|
||||
gh valet update --username ${{ secrets.valet_ghcr_username }} --password ${{ secrets.valet_ghcr_password }}
|
||||
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.valet_ghcr_password }}
|
||||
GITHUB_TOKEN: ${{ secrets.ghcr_password }}
|
||||
- uses: actions-ecosystem/action-add-labels@v1
|
||||
if: always()
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
labels: valet-running
|
||||
labels: actions-importer-running
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
@@ -55,15 +55,15 @@ jobs:
|
||||
- name: Validate arguments
|
||||
run: |
|
||||
if [ -z "${{ steps.prepare.outputs.provider }}" ]; then
|
||||
echo "Unable to determine provider"
|
||||
exit 1
|
||||
echo "Unable to determine provider"
|
||||
exit 1
|
||||
elif [ -z "${{ steps.prepare.outputs.command }}" ]; then
|
||||
echo "Unable to determine command"
|
||||
exit 1
|
||||
echo "Unable to determine command"
|
||||
exit 1
|
||||
fi
|
||||
- name: execute valet
|
||||
- name: execute actions-importer
|
||||
run: |
|
||||
gh valet ${{ steps.prepare.outputs.command }} ${{ steps.prepare.outputs.provider }} \
|
||||
gh actions-importer ${{ steps.prepare.outputs.command }} ${{ steps.prepare.outputs.provider }} \
|
||||
${{ steps.prepare.outputs.args }} \
|
||||
--output-dir output
|
||||
- uses: actions/upload-artifact@v2
|
||||
@@ -86,8 +86,8 @@ jobs:
|
||||
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
if: needs.execute-valet.outputs.command == 'audit'
|
||||
needs: execute-valet
|
||||
if: needs.execute-actions-importer.outputs.command == 'audit'
|
||||
needs: execute-actions-importer
|
||||
steps:
|
||||
- uses: actions/download-artifact@v2
|
||||
if: always()
|
||||
@@ -121,8 +121,8 @@ jobs:
|
||||
})
|
||||
dry-run:
|
||||
runs-on: ubuntu-latest
|
||||
if: needs.execute-valet.outputs.command == 'dry-run'
|
||||
needs: execute-valet
|
||||
if: needs.execute-actions-importer.outputs.command == 'dry-run'
|
||||
needs: execute-actions-importer
|
||||
steps:
|
||||
- uses: actions/download-artifact@v2
|
||||
if: always()
|
||||
@@ -177,8 +177,8 @@ jobs:
|
||||
|
||||
migrate:
|
||||
runs-on: ubuntu-latest
|
||||
if: needs.execute-valet.outputs.command == 'migrate'
|
||||
needs: execute-valet
|
||||
if: needs.execute-actions-importer.outputs.command == 'migrate'
|
||||
needs: execute-actions-importer
|
||||
steps:
|
||||
- uses: actions/download-artifact@v2
|
||||
if: always()
|
||||
@@ -186,7 +186,7 @@ jobs:
|
||||
name: logs
|
||||
- id: pull-request-url
|
||||
run: |
|
||||
pullRequest=$(grep "${{ env.pullRequestPattern }}" ${{ needs.execute-valet.outputs.log-filename }} | sed -rn "s/^.*${{ env.pullRequestPattern }}'(.+)'.*$/\1/p")
|
||||
pullRequest=$(grep "${{ env.pullRequestPattern }}" ${{ needs.execute-actions-importer.outputs.log-filename }} | sed -rn "s/^.*${{ env.pullRequestPattern }}'(.+)'.*$/\1/p")
|
||||
echo $pullRequest
|
||||
echo ::set-output name=output::$pullRequest
|
||||
env:
|
||||
@@ -213,20 +213,20 @@ jobs:
|
||||
|
||||
cleanup:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [execute-valet, audit, migrate, dry-run]
|
||||
needs: [execute-actions-importer, audit, migrate, dry-run]
|
||||
if: always()
|
||||
steps:
|
||||
- uses: actions/download-artifact@v2
|
||||
if: always() && needs.execute-valet.result == 'failure'
|
||||
if: always() && needs.execute-actions-importer.result == 'failure'
|
||||
with:
|
||||
name: logs
|
||||
- uses: actions/github-script@v5
|
||||
if: always() && needs.execute-valet.result == 'failure'
|
||||
if: always() && needs.execute-actions-importer.result == 'failure'
|
||||
with:
|
||||
script: |
|
||||
const fs = require('fs')
|
||||
const MAX_LENGTH = 64000
|
||||
const logData = fs.readFileSync("${{ needs.execute-valet.outputs.log-filename }}", "utf8")
|
||||
const logData = fs.readFileSync("${{ needs.execute-actions-importer.outputs.log-filename }}", "utf8")
|
||||
const body = `Something went wrong. Please check the logs for more information.
|
||||
|
||||
<details>
|
||||
@@ -247,4 +247,4 @@ jobs:
|
||||
if: always()
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
labels: valet-running
|
||||
labels: actions-importer-running
|
||||
|
||||
Reference in New Issue
Block a user