Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix GH Action workflow #1

Merged
merged 5 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test_action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Test Action
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]

jobs:
check-pr-is-updated:
Expand All @@ -13,6 +11,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: 'check if the PR branch is updated or not'
id: check_pr_is_updated
Expand Down
14 changes: 0 additions & 14 deletions Dockerfile

This file was deleted.

15 changes: 9 additions & 6 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ inputs:
remote_branch:
description: 'Remote branch (e.g.: upstream/main)'
required: true
default: 'upstream/main'
pr_sha:
description: 'PR SHA'
required: true
Expand All @@ -16,8 +15,12 @@ branding:
color: green

runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.remote_branch }}
- ${{ inputs.pr_sha }}
using: 'composite'
steps:
- name: check if the PR branch is updated
shell: bash
run: |
if ! git merge-base --is-ancestor ${{ inputs.remote_branch }} ${{ inputs.pr_sha }}; then
echo "This branch is not up to date with ${{ inputs.remote_branch }}";
exit 1;
fi
9 changes: 0 additions & 9 deletions entrypoint.sh

This file was deleted.