From 8aef3e4b7ea99d516fa34f517e3c4e162b620ef3 Mon Sep 17 00:00:00 2001 From: Christopher Angelo Phillips <32073428+spiffcs@users.noreply.github.com> Date: Wed, 8 Jun 2022 09:42:53 -0400 Subject: [PATCH] add workflows to test new project automation (#1023) --- .github/workflows/issues.yaml | 17 +++++++++++++++++ .github/workflows/pr.yaml | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/issues.yaml create mode 100644 .github/workflows/pr.yaml diff --git a/.github/workflows/issues.yaml b/.github/workflows/issues.yaml new file mode 100644 index 00000000000..eb00232f4fa --- /dev/null +++ b/.github/workflows/issues.yaml @@ -0,0 +1,17 @@ +# Uses https://github.com/actions/add-to-project example to add issues to Anchore OSS project +name: Add issues to OSS project + +on: + issues: + types: + - opened + +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/anchore/projects/22 + github-token: ${{ secrets.CI_WRITE_GITHUB_TOKEN }} diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 00000000000..f2ec0d1c12b --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,17 @@ +# Uses https://github.com/actions/add-to-project example to add PR to Anchore OSS project +name: Add pr to OSS project + +on: + pull_request: + types: + - opened + +jobs: + add-to-project: + name: Add pr to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/anchore/projects/22 + github-token: ${{ secrets.CI_WRITE_GITHUB_TOKEN }}