From 21743b3bf918d268fde4a035fb1104be5630e85c Mon Sep 17 00:00:00 2001 From: guy-huinen Date: Mon, 1 Mar 2021 10:23:39 +0100 Subject: [PATCH 1/3] chore: test --- .github/workflows/changelog.yml | 29 ++++++++++++++++++++ .github/workflows/default.yml | 48 +++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 .github/workflows/changelog.yml create mode 100644 .github/workflows/default.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..5c1207a --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,29 @@ +name: CI - Changelog + +on: + push: + branches: [main] + +jobs: + changelog_prerelease: + name: Update Changelog For Prerelease + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + ref: main + - name: Update Changelog + uses: heinrichreimer/github-changelog-generator-action@v2.1.1 + with: + token: $ + issues: true + issuesWoLabels: true + pullRequests: true + prWoLabels: true + unreleased: true + addSections: '{"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}}' + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Update Changelog for PR + file_pattern: CHANGELOG.md diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml new file mode 100644 index 0000000..c17c67c --- /dev/null +++ b/.github/workflows/default.yml @@ -0,0 +1,48 @@ +# This is a basic workflow to help you get started with Actions + +name: CI diem-util + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [main] + paths: + - "/*" + pull_request: + branches: [main] + paths: + - "/*" + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - uses: 8398a7/action-slack@v3 + with: + status: custom + fields: all + custom_payload: | + { + username: 'Diem GitHub Action', + icon_emoji: ':diem:', + channel: '#diem-ci', + attachments: [{ + color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning', + text: `${process.env.AS_WORKFLOW} of ${process.env.AS_AUTHOR.split(/[<@]/)[1]}'s "${process.env.AS_MESSAGE}" in ${process.env.AS_REF.replace('refs/heads/', '')} ${'${{ job.status }}' === 'success' ? 'succeeded' : '${{ job.status }}' === 'failure' ? 'failed' : '${{ job.status }}'} in ${process.env.AS_TOOK}`, + }] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required + if: always() From cb44e63c6b479c17fb7fbd1ee31bedeeacf2d5ac Mon Sep 17 00:00:00 2001 From: guy-huinen Date: Mon, 1 Mar 2021 10:25:14 +0100 Subject: [PATCH 2/3] more test --- .github/workflows/default.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index c17c67c..3477d55 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -8,11 +8,11 @@ on: push: branches: [main] paths: - - "/*" + - "*" pull_request: branches: [main] paths: - - "/*" + - "*" # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From d49de4a9ed2091c615ab10fcdd3cfe2757391a04 Mon Sep 17 00:00:00 2001 From: guy-huinen Date: Mon, 1 Mar 2021 10:30:21 +0100 Subject: [PATCH 3/3] chore: cleanup --- readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/readme.md b/readme.md index 9cbe9a8..7e68025 100644 --- a/readme.md +++ b/readme.md @@ -16,7 +16,6 @@ Kubernetes GitHub Actions - > Python, Spark, REST, Scala, Pipelines, Scheduling, API, Custom Jobs, SQL Statements, Openshift, Cloud Native, Machine Learning, Sendgrid, Kubernetes, Slack, Cloud Object Storage, JDBC, Box Diem can be used to create, display, execute and maintain data transfers between hardware and database platforms. It will cover how to create and manage transfers and assign them to a schedule to execute regularly without human intervention.