Skip to content

Conversation

@confused-Techie
Copy link
Member

With the recent PR put in to add announcements to the news section, this just mirrors some of the most recent announcements from Discord

@confused-Techie
Copy link
Member Author

@ElectronicsArchiver I've gone ahead and tried to make a PR to update the news section, but the action used doesn't seem to work.

I tried ensuring that a PR isn't expected the branch to be named main (As it isn't in this case) but still saw failures.

The errors displayed seemed to match this issue, but the workarounds provided there did not resolve the issue. As you are likely more familiar with this code, any ideas?

@Daeraxa Daeraxa mentioned this pull request Jan 24, 2023
@ElectronicsArchiver
Copy link
Contributor


This might fix your problem, please try it if you have the time.

name : Update News Section

on:

    workflow_dispatch:

    pull_request:

        paths :
            
            -   'News/**'

    push:
        
        paths :
            
            -   'News/**'


                    
concurrency:

    cancel-in-progress : true
    group : news


jobs :
    Build :

        runs-on : ubuntu-latest

        steps :

            -   name : Checkout ( Push / Manual )
                uses : actions/checkout@v3
                if : ${{ github.event_name != 'pull_request' }}
                
            -   name : Checkout ( Pull Request )
                uses : actions/checkout@v3
                if : ${{ github.event_name == 'pull_request' }}

                with :
                    repository : ${{ github.event.pull_request.head.repo.full_name }}
                    ref : ${{ github.event.pull_request.head.ref }}


            -   name : Run News Builder
                uses : MarkedDown/News@1.0.0
                with :
                    
                    config : .github/.News.yml
                
            -   name : Commit Changes
                uses : EndBug/add-and-commit@v9
                with :
                    
                    default_author : github_actor
                    message : Updated News Section
                    add : profile/README.md

@ElectronicsArchiver
Copy link
Contributor

@confused-Techie This should work for both push / manual as well as pull requests.

@confused-Techie
Copy link
Member Author

@confused-Techie This should work for both push / manual as well as pull requests.

Thanks, I'll take a shot at this when I can, appreciate you responding so soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants