mirror of
https://github.com/ytdl-org/ytdl-nightly.git
synced 2025-02-13 01:40:46 +01:00
[workflows/rebase-on-upstream.yml] Pass actual HEAD of upstream
This commit is contained in:
parent
074eb319a7
commit
7dcb91b915
3
.github/workflows/rebase-on-upstream.yml
vendored
3
.github/workflows/rebase-on-upstream.yml
vendored
@ -21,6 +21,7 @@ jobs:
|
||||
run: |
|
||||
echo "HEAD_NOW=$(git rev-parse HEAD)" >> "$GITHUB_ENV"
|
||||
- name: Rebase
|
||||
# fetches upstream as git remote `upstream`
|
||||
uses: ytdl-org/ytdl-patched-rebase-upstream-action@master
|
||||
with:
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
@ -30,7 +31,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
NEW_HEAD=$(git rev-parse HEAD)
|
||||
[ "${{ env.HEAD_NOW }}" = "$NEW_HEAD" ] || echo "build-commit=$NEW_HEAD" >> "$GITHUB_OUTPUT"
|
||||
[ "${{ env.HEAD_NOW }}" = "$NEW_HEAD" ] || echo "build-commit=$(git rev-parse upstream/master)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
build:
|
||||
needs: rebase
|
||||
|
Loading…
x
Reference in New Issue
Block a user