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-Changed Slack Channel #368

Merged
merged 1 commit into from
May 14, 2024
Merged
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
13 changes: 7 additions & 6 deletions .github/workflows/add_new_or_updated_feeds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
echo "TODAYS_MONTH=$(date '+%m')" >> $GITHUB_ENV # Ex.: 07
echo "TODAYS_YEAR=$(date '+%Y')" >> $GITHUB_ENV # Ex.: 2023
echo "YESTERDAYS_DATE=$(date -d "yesterday" +"%m/%d/%Y")" >> $GITHUB_ENV # Ex.: 07/26/2023
echo "RUN_ID=$GITHUB_RUN_ID" >> $GITHUB_ENV

- name: Create branch name
id: create_branch_name
Expand All @@ -36,7 +37,7 @@ jobs:

- name: Load secrets from 1Password
id: onepw_secrets
uses: 1password/load-secrets-action@v1.3.1
uses: 1password/load-secrets-action@v2.0.0
with:
export-env: true # Export loaded secrets as environment variables
env:
Expand Down Expand Up @@ -121,11 +122,11 @@ jobs:

- name: Post notification in Slack channel of update
if: steps.process-csv.outputs.PYTHON_SCRIPT_ARGS != ''
uses: slackapi/slack-github-action@v1.25.0
uses: slackapi/slack-github-action@v1.26.0
with:
payload: |
{
"channel": "G01BLNPU0M8",
"channel": "C072DF86VQB",
"blocks": [
{
"type": "header",
Expand Down Expand Up @@ -157,11 +158,11 @@ jobs:

- name: Post notification in Slack in case of failure
if: failure()
uses: slackapi/slack-github-action@v1.25.0
uses: slackapi/slack-github-action@v1.26.0
with:
payload: |
{
"channel": "G01BLNPU0M8",
"channel": "C072DF86VQB",
"blocks": [
{
"type": "header",
Expand All @@ -182,7 +183,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Open the action run:* https://github.com/MobilityData/mobility-database-catalogs/actions/runs/$GITHUB_RUN_ID"
"text": "*Open the action run:* https://github.com/MobilityData/mobility-database-catalogs/actions/runs/${{ env.RUN_ID }}"
}
}
]
Expand Down
Loading