-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleans up label actions && fix broken action (#17324)
* Cleans up label actions Also fixes my very silly implementation * removes unsused output * Keep titles the same across jerbs
- Loading branch information
1 parent
f006edb
commit dd95d3a
Showing
6 changed files
with
71 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.github/workflows/labeler.yml → ...workflows/label-github-issues-by-path.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Runs internal automation for pull requests | ||
|
||
name: "Add labels to github PRs based on context" | ||
on: | ||
pull_request_target: | ||
types: [opened, labeled, unlabeled, ready_for_review, synchronize, reopened] | ||
|
||
jobs: | ||
find_valid_pat: | ||
name: "Find a PAT with room for actions" | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Airbyte | ||
uses: actions/checkout@v2 | ||
- name: Check PAT rate limits | ||
id: variables | ||
run: | | ||
./tools/bin/find_non_rate_limited_PAT \ | ||
${{ secrets.OCTAVIA_4_ROOT_ACCESS }} \ | ||
${{ secrets.OCTAVIA_PAT }} | ||
shared-pr-labeller: | ||
name: "Add Labels to PRs. Safe to Merge on fail" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: nick-fields/private-action-loader@v3 | ||
with: | ||
pal-repo-token: "${{ secrets.OCTAVIA_PAT }}" | ||
pal-repo-name: airbytehq/workflow-actions@production | ||
# the following input gets passed to the private action | ||
token: "${{ env.PAT }}" | ||
command: "pull" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,34 @@ | ||
name: Notify Cloud of OSS Push to Master | ||
name: Trigger action in cloud based on push | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
find_valid_pat: | ||
name: "Find a PAT with room for actions" | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
outputs: | ||
pat: ${{ steps.variables.outputs.pat }} | ||
steps: | ||
- name: Checkout Airbyte | ||
uses: actions/checkout@v2 | ||
- name: Check PAT rate limits | ||
id: variables | ||
run: | | ||
./tools/bin/find_non_rate_limited_PAT \ | ||
${{ secrets.OCTAVIA_4_ROOT_ACCESS }} \ | ||
${{ secrets.OCTAVIA_PAT }} | ||
repo-sync: | ||
name: "Fire a Repo Dispatch event to airbyte-cloud" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Repository Dispatch | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.OCTAVIA_PAT }} | ||
token: ${{ env.pat }} | ||
repository: airbytehq/airbyte-cloud | ||
event-type: oss-push-to-master | ||
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' |
This file was deleted.
Oops, something went wrong.