This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a different flow for upstream manually (#1380)
- Loading branch information
1 parent
75ba257
commit f074f6d
Showing
2 changed files
with
43 additions
and
3 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
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,42 @@ | ||
name: "TRIGGER_UPSTREAM" | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
- /.*beta.*/ | ||
pull_request: | ||
branches: | ||
- develop | ||
# Allows to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
GITHUB_REPO_SLUG: ${{ github.repository }} | ||
GITHUB_BRANCH: ${{ github.ref }} | ||
GITHUB_PULL_REQUEST: ${{ github.event.number }} | ||
GITHUB_BUILD_NUMBER: ${{ github.run_number }} | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' | ||
steps: | ||
- name: Trigger ADF alpha | ||
shell: bash | ||
if: github.event_name == 'workflow_dispatch' | ||
|
||
run: | | ||
git config --global user.email ${{ secrets.BOT_GITHUB_EMAIL }} | ||
git config --global user.name ${{ secrets.BOT_GITHUB_USERNAME }} | ||
./scripts/update-project.sh -p ${{ github.run_number }} -t ${{ secrets.BOT_GITHUB_TOKEN }} -v alpha | ||
- name: Trigger ADF master | ||
shell: bash | ||
if: github.ref == 'refs/heads/master' && github.event_name == 'workflow_dispatch' | ||
run: | | ||
git config --global user.email ${{ secrets.BOT_GITHUB_EMAIL }} | ||
git config --global user.name ${{ secrets.BOT_GITHUB_USERNAME }} | ||
./scripts/update-project.sh -p ${{ github.run_number }} -t ${{ secrets.BOT_GITHUB_TOKEN }} -v latest | ||