Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Create a different flow for upstream manually (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriziovitale authored May 9, 2022
1 parent 75ba257 commit f074f6d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/js-api-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:
- develop
schedule:
- cron: '0 3 * * *' # At 03:00 AM nightly every day
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:

env:
GITHUB_REPO_SLUG: ${{ github.repository }}
Expand Down Expand Up @@ -114,7 +112,7 @@ jobs:
- name: Trigger ADF alpha
shell: bash
if: github.event.schedule == '0 3 * * *' || github.event_name == 'workflow_dispatch'
if: github.event.schedule == '0 3 * * *'

run: |
git config --global user.email ${{ secrets.BOT_GITHUB_EMAIL }}
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/trigger-upstream.yml
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

0 comments on commit f074f6d

Please sign in to comment.